|
@@ -318,5 +318,28 @@
|
318
|
318
|
XCTAssertNil([self.uut.view viewWithTag:BLUR_STATUS_TAG]);
|
319
|
319
|
}
|
320
|
320
|
|
|
321
|
+- (void)testTabBarHidden_default {
|
|
322
|
+ __unused UINavigationController* nav = [[UINavigationController alloc] initWithRootViewController:self.uut];
|
|
323
|
+ [self.uut viewWillAppear:false];
|
|
324
|
+
|
|
325
|
+ XCTAssertFalse([self.uut hidesBottomBarWhenPushed]);
|
|
326
|
+}
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+- (void)testTabBarHidden_true {
|
|
330
|
+ self.options.tabBarHidden = @(1);
|
|
331
|
+ __unused UINavigationController* nav = [[UINavigationController alloc] initWithRootViewController:self.uut];
|
|
332
|
+ [self.uut viewWillAppear:false];
|
|
333
|
+
|
|
334
|
+ XCTAssertTrue([self.uut hidesBottomBarWhenPushed]);
|
|
335
|
+}
|
|
336
|
+
|
|
337
|
+- (void)testTabBarHidden_false {
|
|
338
|
+ self.options.tabBarHidden = @(0);
|
|
339
|
+ __unused UINavigationController* nav = [[UINavigationController alloc] initWithRootViewController:self.uut];
|
|
340
|
+ [self.uut viewWillAppear:false];
|
|
341
|
+
|
|
342
|
+ XCTAssertFalse([self.uut hidesBottomBarWhenPushed]);
|
|
343
|
+}
|
321
|
344
|
|
322
|
345
|
@end
|