Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @testable import Shopify_POS
- class CustomerDetailsViewControllerTests: PointOfSaleTests {
- func testDetailsOfflineDisablesEdit() {
- let customerDataProvider = CustomersDataProvider.Mock()
- let customerDetails = CustomerDetailsViewController(account: account, customer: createCustomer(), /*...*/ reachability: ReachabilityMock(with: .none))
- let navigationController = UINavigationController(rootViewController: customerDetails)
- navigationController.view.resize(to: .modal)
- verify(navigationController, delay: 1.0)
- }
- func testDetailsWithActions() {
- let customerDetails = CustomerDetailsViewController(account: account, customer: createCustomer(), /*...*/)
- let navigationController = UINavigationController(rootViewController: customerDetails)
- navigationController.view.resize(to: .modal)
- verify(navigationController, delay: 1.0)
- }
- }
Add Comment
Please, Sign In to add comment