@@ -53,7 +53,7 @@ protected function getEnvironmentSetUp($app)
53
53
54
54
$ factory ->afterMakingState (FactoryBuildableUser::class, 'with_callable_server ' , function (FactoryBuildableUser $ user , Generator $ faker ) {
55
55
$ server = factory (FactoryBuildableServer::class)
56
- ->states ('callable ' )
56
+ ->state ('callable ' )
57
57
->make (['user_id ' => $ user ->id ]);
58
58
59
59
$ user ->servers ->push ($ server );
@@ -91,7 +91,7 @@ protected function getEnvironmentSetUp($app)
91
91
92
92
$ factory ->afterCreatingState (FactoryBuildableUser::class, 'with_callable_server ' , function (FactoryBuildableUser $ user , Generator $ faker ) {
93
93
$ server = factory (FactoryBuildableServer::class)
94
- ->states ('callable ' )
94
+ ->state ('callable ' )
95
95
->create (['user_id ' => $ user ->id ]);
96
96
});
97
97
@@ -186,11 +186,11 @@ public function creating_collection_of_models()
186
186
/**
187
187
* @test
188
188
*/
189
- public function creating_models_with_callable_states ()
189
+ public function creating_models_with_callable_state ()
190
190
{
191
191
$ server = factory (FactoryBuildableServer::class)->create ();
192
192
193
- $ callableServer = factory (FactoryBuildableServer::class)->states ('callable ' )->create ();
193
+ $ callableServer = factory (FactoryBuildableServer::class)->state ('callable ' )->create ();
194
194
195
195
$ this ->assertEquals ('active ' , $ server ->status );
196
196
$ this ->assertEquals (['Storage ' , 'Data ' ], $ server ->tags );
@@ -200,11 +200,11 @@ public function creating_models_with_callable_states()
200
200
/**
201
201
* @test
202
202
*/
203
- public function creating_models_with_inline_states ()
203
+ public function creating_models_with_inline_state ()
204
204
{
205
205
$ server = factory (FactoryBuildableServer::class)->create ();
206
206
207
- $ inlineServer = factory (FactoryBuildableServer::class)->states ('inline ' )->create ();
207
+ $ inlineServer = factory (FactoryBuildableServer::class)->state ('inline ' )->create ();
208
208
209
209
$ this ->assertEquals ('active ' , $ server ->status );
210
210
$ this ->assertEquals ('inline ' , $ inlineServer ->status );
@@ -249,9 +249,9 @@ public function creating_models_with_after_callback()
249
249
}
250
250
251
251
/** @test **/
252
- public function creating_models_with_after_callback_states ()
252
+ public function creating_models_with_after_callback_state ()
253
253
{
254
- $ user = factory (FactoryBuildableUser::class)->states ('with_callable_server ' )->create ();
254
+ $ user = factory (FactoryBuildableUser::class)->state ('with_callable_server ' )->create ();
255
255
256
256
$ this ->assertNotNull ($ user ->profile );
257
257
$ this ->assertNotNull ($ user ->servers ->where ('status ' , 'callable ' )->first ());
@@ -276,9 +276,9 @@ public function making_models_with_after_callback()
276
276
}
277
277
278
278
/** @test **/
279
- public function making_models_with_after_callback_states ()
279
+ public function making_models_with_after_callback_state ()
280
280
{
281
- $ user = factory (FactoryBuildableUser::class)->states ('with_callable_server ' )->make ();
281
+ $ user = factory (FactoryBuildableUser::class)->state ('with_callable_server ' )->make ();
282
282
283
283
$ this ->assertNotNull ($ user ->profile );
284
284
$ this ->assertNotNull ($ user ->servers ->where ('status ' , 'callable ' )->first ());
0 commit comments