Browse Source

ios - rename tests createLayout

Ran Greenberg 7 years ago
parent
commit
47a553ac8b
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      playground/ios/playgroundTests/RNNControllerFactoryTest.m

+ 8
- 8
playground/ios/playgroundTests/RNNControllerFactoryTest.m View File

33
 }
33
 }
34
 
34
 
35
 - (void)testCreateLayout_EmptyLayout {
35
 - (void)testCreateLayout_EmptyLayout {
36
-	XCTAssertThrows([self.factory createLayout:@{}]);
36
+	XCTAssertThrows([self.factory createLayoutAndSaveToStore:@{}]);
37
 }
37
 }
38
 
38
 
39
 
39
 
40
 - (void)testCreateLayout_ContainerLayout {
40
 - (void)testCreateLayout_ContainerLayout {
41
 	
41
 	
42
-	id ans = [self.factory createLayout:
42
+	id ans = [self.factory createLayoutAndSaveToStore:
43
 			  @{@"id": @"cntId",
43
 			  @{@"id": @"cntId",
44
 				@"type": @"Container",
44
 				@"type": @"Container",
45
 				@"data": @{},
45
 				@"data": @{},
48
 }
48
 }
49
 
49
 
50
 - (void)testCreateLayout_ContainerStackLayout {
50
 - (void)testCreateLayout_ContainerStackLayout {
51
-	id ans = [self.factory createLayout:
51
+	id ans = [self.factory createLayoutAndSaveToStore:
52
 			  @{@"id": @"cntId",
52
 			  @{@"id": @"cntId",
53
 				@"type": @"ContainerStack",
53
 				@"type": @"ContainerStack",
54
 				@"data": @{},
54
 				@"data": @{},
57
 }
57
 }
58
 
58
 
59
 - (void)testCreateLayout_ContainerStackLayoutRecursive {
59
 - (void)testCreateLayout_ContainerStackLayoutRecursive {
60
-	UINavigationController* ans = (UINavigationController*) [self.factory createLayout:
60
+	UINavigationController* ans = (UINavigationController*) [self.factory createLayoutAndSaveToStore:
61
 															 @{@"id": @"cntId",
61
 															 @{@"id": @"cntId",
62
 															   @"type": @"ContainerStack",
62
 															   @"type": @"ContainerStack",
63
 															   @"data": @{},
63
 															   @"data": @{},
73
 }
73
 }
74
 
74
 
75
 - (void)testCreateLayout_BottomTabsLayout {
75
 - (void)testCreateLayout_BottomTabsLayout {
76
-	UITabBarController* tabBar = (UITabBarController*) [self.factory createLayout:
76
+	UITabBarController* tabBar = (UITabBarController*) [self.factory createLayoutAndSaveToStore:
77
 														@{
77
 														@{
78
 														  @"id": @"cntId",
78
 														  @"id": @"cntId",
79
 														  @"type": @"BottomTabs",
79
 														  @"type": @"BottomTabs",
101
 
101
 
102
 
102
 
103
 - (void)testCreateLayout_ContainerSideMenuLayoutCenterLeftRight {
103
 - (void)testCreateLayout_ContainerSideMenuLayoutCenterLeftRight {
104
-	RNNSideMenuController *ans = (RNNSideMenuController*) [self.factory createLayout:
104
+	RNNSideMenuController *ans = (RNNSideMenuController*) [self.factory createLayoutAndSaveToStore:
105
 														   @{@"id": @"cntId",
105
 														   @{@"id": @"cntId",
106
 															 @"type": @"SideMenuRoot",
106
 															 @"type": @"SideMenuRoot",
107
 															 @"data": @{},
107
 															 @"data": @{},
147
 }
147
 }
148
 
148
 
149
 - (void)testCreateLayout_ContainerSideMenuLayoutCenterTabBar {
149
 - (void)testCreateLayout_ContainerSideMenuLayoutCenterTabBar {
150
-	RNNSideMenuController *ans = (RNNSideMenuController*) [self.factory createLayout:
150
+	RNNSideMenuController *ans = (RNNSideMenuController*) [self.factory createLayoutAndSaveToStore:
151
 														   @{@"id": @"cntId",
151
 														   @{@"id": @"cntId",
152
 															 @"type": @"SideMenuRoot",
152
 															 @"type": @"SideMenuRoot",
153
 															 @"data": @{},
153
 															 @"data": @{},
192
 
192
 
193
 - (void)testCreateLayout_addContainerToStore {
193
 - (void)testCreateLayout_addContainerToStore {
194
 	NSString *containerId = @"cntId";
194
 	NSString *containerId = @"cntId";
195
-	UIViewController *ans = [self.factory createLayout:
195
+	UIViewController *ans = [self.factory createLayoutAndSaveToStore:
196
 							 @{@"id": containerId,
196
 							 @{@"id": containerId,
197
 							   @"type": @"Container",
197
 							   @"type": @"Container",
198
 							   @"data": @{},
198
 							   @"data": @{},