Guest User

Untitled

a guest
Dec 12th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. @testable import Shopify_POS
  2.  
  3. class CustomerDetailsViewControllerTests: PointOfSaleTests {
  4.  
  5. func testDetailsOfflineDisablesEdit() {
  6. let customerDataProvider = CustomersDataProvider.Mock()
  7. let customerDetails = CustomerDetailsViewController(account: account, customer: createCustomer(), /*...*/ reachability: ReachabilityMock(with: .none))
  8. let navigationController = UINavigationController(rootViewController: customerDetails)
  9.  
  10. navigationController.view.resize(to: .modal)
  11.  
  12. verify(navigationController, delay: 1.0)
  13. }
  14.  
  15. func testDetailsWithActions() {
  16. let customerDetails = CustomerDetailsViewController(account: account, customer: createCustomer(), /*...*/)
  17. let navigationController = UINavigationController(rootViewController: customerDetails)
  18.  
  19. navigationController.view.resize(to: .modal)
  20.  
  21. verify(navigationController, delay: 1.0)
  22. }
  23. }
Add Comment
Please, Sign In to add comment