ソースを参照

ios - rename tests createLayout

Ran Greenberg 7 年 前
コミット
47a553ac8b
共有1 個のファイルを変更した8 個の追加8 個の削除を含む
  1. 8
    8
      playground/ios/playgroundTests/RNNControllerFactoryTest.m

+ 8
- 8
playground/ios/playgroundTests/RNNControllerFactoryTest.m ファイルの表示

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