@@ -116,14 +116,14 @@ public function test_it_allows_swapping_between_deployments()
116116 Artisan::call ('atomic-deployments:deploy --directory=test-dir-1 ' );
117117 Artisan::call ('atomic-deployments:deploy --directory=test-dir-2 ' );
118118 $ deployment1 = AtomicDeployment::where ('commit_hash ' , 'test-dir-1 ' )->first ()->append (
119- 'isCurrentlyDeployed '
119+ 'is_currently_deployed '
120120 )->toArray ();
121121 $ deployment2 = AtomicDeployment::where ('commit_hash ' , 'test-dir-2 ' )->first ()->append (
122- 'isCurrentlyDeployed '
122+ 'is_currently_deployed '
123123 )->toArray ();
124124
125- $ this ->assertFalse ($ deployment1 ['isCurrentlyDeployed ' ]);
126- $ this ->assertTrue ($ deployment2 ['isCurrentlyDeployed ' ]);
125+ $ this ->assertFalse ($ deployment1 ['is_currently_deployed ' ]);
126+ $ this ->assertTrue ($ deployment2 ['is_currently_deployed ' ]);
127127
128128 // Act
129129 Artisan::call ('atomic-deployments:deploy --hash=test-dir-fake ' );
@@ -144,14 +144,14 @@ public function test_it_allows_swapping_between_deployments()
144144 ]);
145145
146146 $ deployment1 = AtomicDeployment::where ('commit_hash ' , 'test-dir-1 ' )->first ()->append (
147- 'isCurrentlyDeployed '
147+ 'is_currently_deployed '
148148 )->toArray ();
149149 $ deployment2 = AtomicDeployment::where ('commit_hash ' , 'test-dir-2 ' )->first ()->append (
150- 'isCurrentlyDeployed '
150+ 'is_currently_deployed '
151151 )->toArray ();
152152
153- $ this ->assertTrue ($ deployment1 ['isCurrentlyDeployed ' ]);
154- $ this ->assertFalse ($ deployment2 ['isCurrentlyDeployed ' ]);
153+ $ this ->assertTrue ($ deployment1 ['is_currently_deployed ' ]);
154+ $ this ->assertFalse ($ deployment2 ['is_currently_deployed ' ]);
155155 }
156156
157157 public function test_it_cleans_old_build_folders_based_on_build_limit ()
@@ -190,18 +190,18 @@ public function test_it_dispatches_deployment_successful_event_on_deployment_swa
190190 Artisan::call ('atomic-deployments:deploy --directory=test-dir-1 ' );
191191 Artisan::call ('atomic-deployments:deploy --directory=test-dir-2 ' );
192192 $ deployment = AtomicDeployment::where ('commit_hash ' , 'test-dir-2 ' )->first ()->append (
193- 'isCurrentlyDeployed '
193+ 'is_currently_deployed '
194194 )->toArray ();
195- $ this ->assertTrue ($ deployment ['isCurrentlyDeployed ' ]);
195+ $ this ->assertTrue ($ deployment ['is_currently_deployed ' ]);
196196
197197 // Act
198198 Artisan::call ('atomic-deployments:deploy --hash=test-dir-1 ' );
199199
200200 // Assert
201201 $ deployment = AtomicDeployment::where ('commit_hash ' , 'test-dir-1 ' )->first ()->append (
202- 'isCurrentlyDeployed '
202+ 'is_currently_deployed '
203203 )->toArray ();
204- $ this ->assertTrue ($ deployment ['isCurrentlyDeployed ' ]);
204+ $ this ->assertTrue ($ deployment ['is_currently_deployed ' ]);
205205 Event::assertDispatched (DeploymentSuccessful::class);
206206 }
207207
0 commit comments