|
@@ -84,4 +84,43 @@
|
84
|
84
|
XCTAssertTrue(_boundViewController.modalInPresentation);
|
85
|
85
|
}
|
86
|
86
|
|
|
87
|
+- (void)testHidesBottomBarWhenPushed_showsBar {
|
|
88
|
+ _boundViewController.options.bottomTabs.visible = [[Bool alloc] initWithBOOL:NO];
|
|
89
|
+ XCTAssertTrue(_boundViewController.hidesBottomBarWhenPushed);
|
|
90
|
+}
|
|
91
|
+
|
|
92
|
+- (void)testHidesBottomBarWhenPushed_hidesBar {
|
|
93
|
+ _boundViewController.options.bottomTabs.visible = [[Bool alloc] initWithBOOL:YES];
|
|
94
|
+ XCTAssertFalse(_boundViewController.hidesBottomBarWhenPushed);
|
|
95
|
+}
|
|
96
|
+
|
|
97
|
+- (void)testHidesBottomBarWhenPushed_resolveParentShowsBar {
|
|
98
|
+ UINavigationController* nvc = [[UINavigationController alloc] initWithRootViewController:self.boundViewController];
|
|
99
|
+ nvc.options = [RNNNavigationOptions emptyOptions];
|
|
100
|
+ nvc.options.bottomTabs.visible = [[Bool alloc] initWithBOOL:NO];
|
|
101
|
+ XCTAssertTrue(_boundViewController.hidesBottomBarWhenPushed);
|
|
102
|
+}
|
|
103
|
+
|
|
104
|
+- (void)testHidesBottomBarWhenPushed_resolveParentHidesBar {
|
|
105
|
+ UINavigationController* nvc = [[UINavigationController alloc] initWithRootViewController:self.boundViewController];
|
|
106
|
+ nvc.options = [RNNNavigationOptions emptyOptions];
|
|
107
|
+ nvc.options.bottomTabs.visible = [[Bool alloc] initWithBOOL:YES];
|
|
108
|
+ XCTAssertFalse(_boundViewController.hidesBottomBarWhenPushed);
|
|
109
|
+}
|
|
110
|
+
|
|
111
|
+- (void)testHidesBottomBarWhenPushed_resolveChildShowsBarBeforeParent {
|
|
112
|
+ UINavigationController* nvc = [[UINavigationController alloc] initWithRootViewController:self.boundViewController];
|
|
113
|
+ nvc.options = [RNNNavigationOptions emptyOptions];
|
|
114
|
+ nvc.options.bottomTabs.visible = [[Bool alloc] initWithBOOL:NO];
|
|
115
|
+ XCTAssertTrue(_boundViewController.hidesBottomBarWhenPushed);
|
|
116
|
+}
|
|
117
|
+
|
|
118
|
+- (void)testHidesBottomBarWhenPushed_resolveChildHidesBarBeforeParent {
|
|
119
|
+ UINavigationController* nvc = [[UINavigationController alloc] initWithRootViewController:self.boundViewController];
|
|
120
|
+ nvc.options = [RNNNavigationOptions emptyOptions];
|
|
121
|
+ self.boundViewController.options.bottomTabs.visible = [[Bool alloc] initWithBOOL:NO];
|
|
122
|
+ nvc.options.bottomTabs.visible = [[Bool alloc] initWithBOOL:YES];
|
|
123
|
+ XCTAssertTrue(_boundViewController.hidesBottomBarWhenPushed);
|
|
124
|
+}
|
|
125
|
+
|
87
|
126
|
@end
|