Trump tweeted that Iran "has been formally put on notice" after Iran undertook a ballistic missile test.