Xcode – Unit test, to test if a view controller has presented another view controller
I want to make a unit test to see if a view controller is presenting another view controller. func testMainTabController_WhenActionButtonIsTapped_NewSuppliersInvoiceControllerIsCreatedV2() { let sut = MainTabBarController() sut.loadViewIfNeeded() let myExpectation = expectation(description: "The sut should present a view controller") sut.actionButton.sendActions(for: .touchUpInside) if…