@@ -37,22 +37,22 @@ public function testOnce()
3737 $ this ->artisan ('migrate:actions ' )->run ();
3838
3939 $ this ->assertDatabaseCount ($ table , 1 );
40- $ this ->assertDatabaseCount ($ this ->table , 6 );
40+ $ this ->assertDatabaseCount ($ this ->table , 7 );
4141 $ this ->assertDatabaseMigrationDoesntLike ($ this ->table , $ table );
4242 $ this ->artisan ('migrate:actions ' )->run ();
4343
4444 $ this ->assertDatabaseCount ($ table , 2 );
45- $ this ->assertDatabaseCount ($ this ->table , 6 );
45+ $ this ->assertDatabaseCount ($ this ->table , 7 );
4646 $ this ->assertDatabaseMigrationDoesntLike ($ this ->table , $ table );
4747 $ this ->artisan ('migrate:actions ' )->run ();
4848
4949 $ this ->assertDatabaseCount ($ table , 3 );
50- $ this ->assertDatabaseCount ($ this ->table , 6 );
50+ $ this ->assertDatabaseCount ($ this ->table , 7 );
5151 $ this ->assertDatabaseMigrationDoesntLike ($ this ->table , $ table );
5252 $ this ->artisan ('migrate:actions ' )->run ();
5353
5454 $ this ->assertDatabaseCount ($ table , 4 );
55- $ this ->assertDatabaseCount ($ this ->table , 6 );
55+ $ this ->assertDatabaseCount ($ this ->table , 7 );
5656 $ this ->assertDatabaseMigrationDoesntLike ($ this ->table , $ table );
5757 }
5858
@@ -116,7 +116,7 @@ public function testSingleEnvironment()
116116 $ this ->artisan ('migrate:actions ' )->run ();
117117
118118 $ this ->assertDatabaseCount ($ table , 5 );
119- $ this ->assertDatabaseCount ($ this ->table , 6 );
119+ $ this ->assertDatabaseCount ($ this ->table , 7 );
120120 $ this ->assertDatabaseMigrationHas ($ this ->table , 'run_on_all ' );
121121 $ this ->assertDatabaseMigrationDoesntLike ($ this ->table , 'run_on_production ' );
122122 $ this ->assertDatabaseMigrationHas ($ this ->table , 'run_on_testing ' );
@@ -125,7 +125,7 @@ public function testSingleEnvironment()
125125 $ this ->artisan ('migrate:actions ' )->run ();
126126
127127 $ this ->assertDatabaseCount ($ table , 5 );
128- $ this ->assertDatabaseCount ($ this ->table , 6 );
128+ $ this ->assertDatabaseCount ($ this ->table , 7 );
129129 $ this ->assertDatabaseMigrationHas ($ this ->table , 'run_on_all ' );
130130 $ this ->assertDatabaseMigrationDoesntLike ($ this ->table , 'run_on_production ' );
131131 $ this ->assertDatabaseMigrationHas ($ this ->table , 'run_on_testing ' );
@@ -154,7 +154,7 @@ public function testManyEnvironments()
154154 $ this ->artisan ('migrate:actions ' )->run ();
155155
156156 $ this ->assertDatabaseCount ($ table , 5 );
157- $ this ->assertDatabaseCount ($ this ->table , 6 );
157+ $ this ->assertDatabaseCount ($ this ->table , 7 );
158158 $ this ->assertDatabaseMigrationHas ($ this ->table , 'run_on_all ' );
159159 $ this ->assertDatabaseMigrationDoesntLike ($ this ->table , 'run_on_production ' );
160160 $ this ->assertDatabaseMigrationHas ($ this ->table , 'run_on_testing ' );
@@ -165,7 +165,7 @@ public function testManyEnvironments()
165165 $ this ->artisan ('migrate:actions ' )->run ();
166166
167167 $ this ->assertDatabaseCount ($ table , 5 );
168- $ this ->assertDatabaseCount ($ this ->table , 6 );
168+ $ this ->assertDatabaseCount ($ this ->table , 7 );
169169 $ this ->assertDatabaseMigrationHas ($ this ->table , 'run_on_all ' );
170170 $ this ->assertDatabaseMigrationDoesntLike ($ this ->table , 'run_on_production ' );
171171 $ this ->assertDatabaseMigrationHas ($ this ->table , 'run_on_testing ' );
@@ -191,18 +191,37 @@ public function testAllow()
191191 $ this ->artisan ('migrate:actions ' )->run ();
192192
193193 $ this ->assertDatabaseCount ($ table , 5 );
194- $ this ->assertDatabaseCount ($ this ->table , 6 );
194+ $ this ->assertDatabaseCount ($ this ->table , 7 );
195195 $ this ->assertDatabaseMigrationHas ($ this ->table , 'run_allow ' );
196196 $ this ->assertDatabaseMigrationDoesntLike ($ this ->table , 'run_disallow ' );
197197 $ this ->artisan ('migrate:actions ' )->run ();
198198
199199 $ this ->assertDatabaseCount ($ table , 5 );
200- $ this ->assertDatabaseCount ($ this ->table , 6 );
200+ $ this ->assertDatabaseCount ($ this ->table , 7 );
201201 $ this ->assertDatabaseMigrationHas ($ this ->table , 'run_allow ' );
202202 $ this ->assertDatabaseMigrationDoesntLike ($ this ->table , 'run_disallow ' );
203203 $ this ->artisan ('migrate:actions ' )->run ();
204204 }
205205
206+ public function testUpSuccess ()
207+ {
208+ $ this ->copyFiles ();
209+
210+ $ table = 'success ' ;
211+
212+ $ this ->artisan ('migrate:actions:install ' )->run ();
213+
214+ $ this ->assertDatabaseCount ($ table , 0 );
215+ $ this ->assertDatabaseCount ($ this ->table , 0 );
216+ $ this ->assertDatabaseMigrationDoesntLike ($ this ->table , 'run_success ' );
217+ $ this ->artisan ('migrate:actions ' )->run ();
218+
219+ $ this ->assertDatabaseCount ($ table , 2 );
220+ $ this ->assertDatabaseCount ($ this ->table , 7 );
221+ $ this ->assertDatabaseMigrationHas ($ this ->table , 'run_success ' );
222+ $ this ->artisan ('migrate:actions ' )->run ();
223+ }
224+
206225 public function testPathAsFileWithExtension ()
207226 {
208227 $ this ->copyFiles ();
0 commit comments