16
16
17
17
class OperationsTest extends TestCase
18
18
{
19
- public function testSuccess ()
19
+ public function testSuccess (): void
20
20
{
21
21
$ this ->assertDatabaseDoesntTable ($ this ->table );
22
22
@@ -32,7 +32,7 @@ public function testSuccess()
32
32
$ this ->assertDatabaseOperationHas ($ this ->table , 'test_migration ' );
33
33
}
34
34
35
- public function testSameName ()
35
+ public function testSameName (): void
36
36
{
37
37
$ this ->assertDatabaseDoesntTable ($ this ->table );
38
38
@@ -52,7 +52,7 @@ public function testSameName()
52
52
$ this ->assertDatabaseOperationHas ($ this ->table , 'test_migration ' );
53
53
}
54
54
55
- public function testOnce ()
55
+ public function testOnce (): void
56
56
{
57
57
$ this ->copyFiles ();
58
58
@@ -85,7 +85,7 @@ public function testOnce()
85
85
$ this ->assertDatabaseOperationDoesntLike ($ this ->table , $ table );
86
86
}
87
87
88
- public function testSuccessTransaction ()
88
+ public function testSuccessTransaction (): void
89
89
{
90
90
$ this ->copySuccessTransaction ();
91
91
@@ -103,7 +103,7 @@ public function testSuccessTransaction()
103
103
$ this ->assertDatabaseOperationHas ($ this ->table , $ table );
104
104
}
105
105
106
- public function testFailedTransaction ()
106
+ public function testFailedTransaction (): void
107
107
{
108
108
$ this ->copyFailedTransaction ();
109
109
@@ -128,7 +128,7 @@ public function testFailedTransaction()
128
128
$ this ->assertDatabaseOperationDoesntLike ($ this ->table , $ table );
129
129
}
130
130
131
- public function testSingleEnvironment ()
131
+ public function testSingleEnvironment (): void
132
132
{
133
133
$ this ->copyFiles ();
134
134
@@ -163,7 +163,7 @@ public function testSingleEnvironment()
163
163
$ this ->assertDatabaseOperationDoesntLike ($ this ->table , 'run_except_testing ' );
164
164
}
165
165
166
- public function testManyEnvironments ()
166
+ public function testManyEnvironments (): void
167
167
{
168
168
$ this ->copyFiles ();
169
169
@@ -204,7 +204,7 @@ public function testManyEnvironments()
204
204
$ this ->assertDatabaseOperationDoesntLike ($ this ->table , 'run_except_many_environments ' );
205
205
}
206
206
207
- public function testAllow ()
207
+ public function testAllow (): void
208
208
{
209
209
$ this ->copyFiles ();
210
210
@@ -230,7 +230,7 @@ public function testAllow()
230
230
$ this ->assertDatabaseOperationDoesntLike ($ this ->table , 'run_disallow ' );
231
231
}
232
232
233
- public function testUpSuccess ()
233
+ public function testUpSuccess (): void
234
234
{
235
235
$ this ->copyFiles ();
236
236
@@ -248,7 +248,7 @@ public function testUpSuccess()
248
248
$ this ->assertDatabaseOperationHas ($ this ->table , 'run_success ' );
249
249
}
250
250
251
- public function testUpSuccessOnFailed ()
251
+ public function testUpSuccessOnFailed (): void
252
252
{
253
253
$ this ->copyFiles ();
254
254
@@ -283,7 +283,7 @@ public function testUpSuccessOnFailed()
283
283
$ this ->assertDatabaseOperationDoesntLike ($ this ->table , 'run_success_on_failed ' );
284
284
}
285
285
286
- public function testUpFailed ()
286
+ public function testUpFailed (): void
287
287
{
288
288
$ this ->copyFiles ();
289
289
@@ -301,7 +301,7 @@ public function testUpFailed()
301
301
$ this ->assertDatabaseOperationHas ($ this ->table , 'run_failed ' );
302
302
}
303
303
304
- public function testUpFailedOnException ()
304
+ public function testUpFailedOnException (): void
305
305
{
306
306
$ this ->copyFiles ();
307
307
@@ -336,7 +336,7 @@ public function testUpFailedOnException()
336
336
$ this ->assertDatabaseOperationDoesntLike ($ this ->table , 'run_failed_failure ' );
337
337
}
338
338
339
- public function testPathAsFileWithExtension ()
339
+ public function testPathAsFileWithExtension (): void
340
340
{
341
341
$ this ->copyFiles ();
342
342
@@ -358,7 +358,7 @@ public function testPathAsFileWithExtension()
358
358
$ this ->assertSame ('sub_path/2021_12_15_205804_baz ' , $ this ->table ()->first ()->operation );
359
359
}
360
360
361
- public function testPathAsFileWithoutExtension ()
361
+ public function testPathAsFileWithoutExtension (): void
362
362
{
363
363
$ this ->copyFiles ();
364
364
@@ -380,7 +380,7 @@ public function testPathAsFileWithoutExtension()
380
380
$ this ->assertSame ($ path , $ this ->table ()->first ()->operation );
381
381
}
382
382
383
- public function testPathAsDirectory ()
383
+ public function testPathAsDirectory (): void
384
384
{
385
385
$ this ->copyFiles ();
386
386
@@ -402,7 +402,7 @@ public function testPathAsDirectory()
402
402
$ this ->assertSame ('sub_path/2021_12_15_205804_baz ' , $ this ->table ()->first ()->operation );
403
403
}
404
404
405
- public function testOperationsNotFound ()
405
+ public function testOperationsNotFound (): void
406
406
{
407
407
$ this ->assertDatabaseDoesntTable ($ this ->table );
408
408
@@ -413,7 +413,7 @@ public function testOperationsNotFound()
413
413
$ this ->artisan (Names::Status)->assertExitCode (0 );
414
414
}
415
415
416
- public function testDisabledBefore ()
416
+ public function testDisabledBefore (): void
417
417
{
418
418
$ this ->copyFiles ();
419
419
@@ -439,7 +439,7 @@ public function testDisabledBefore()
439
439
$ this ->assertDatabaseOperationHas ($ this ->table , 'test_before_disabled ' );
440
440
}
441
441
442
- public function testEnabledBefore ()
442
+ public function testEnabledBefore (): void
443
443
{
444
444
$ this ->copyFiles ();
445
445
@@ -465,7 +465,7 @@ public function testEnabledBefore()
465
465
$ this ->assertDatabaseOperationDoesntLike ($ this ->table , 'test_before_disabled ' );
466
466
}
467
467
468
- public function testMixedBefore ()
468
+ public function testMixedBefore (): void
469
469
{
470
470
$ this ->copyFiles ();
471
471
@@ -563,7 +563,7 @@ public function testSorting(): void
563
563
$ this ->assertSame ($ files , $ records );
564
564
}
565
565
566
- public function testDirectoryExclusion ()
566
+ public function testDirectoryExclusion (): void
567
567
{
568
568
$ this ->copyFiles ();
569
569
@@ -613,7 +613,7 @@ public function testDirectoryExclusion()
613
613
$ this ->assertDatabaseOperationDoesntLike ($ this ->table , 'sub_path/2022_10_27_230732_foo ' );
614
614
}
615
615
616
- public function testFileExclusion ()
616
+ public function testFileExclusion (): void
617
617
{
618
618
$ this ->copyFiles ();
619
619
@@ -658,7 +658,7 @@ public function testFileExclusion()
658
658
$ this ->assertDatabaseOperationHas ($ this ->table , 'sub_path/2022_10_27_230732_foo ' );
659
659
}
660
660
661
- public function testEmptyDirectory ()
661
+ public function testEmptyDirectory (): void
662
662
{
663
663
$ this ->copyEmptyDirectory ();
664
664
@@ -675,7 +675,7 @@ public function testEmptyDirectory()
675
675
$ this ->assertDatabaseCount ($ this ->table , 0 );
676
676
}
677
677
678
- public function testAsync ()
678
+ public function testAsync (): void
679
679
{
680
680
$ this ->copyAsync ();
681
681
@@ -711,7 +711,7 @@ public function testAsync()
711
711
]));
712
712
}
713
713
714
- public function testSync ()
714
+ public function testSync (): void
715
715
{
716
716
$ this ->copyAsync ();
717
717
@@ -748,7 +748,7 @@ public function testSync()
748
748
$ this ->assertDatabaseOperationDoesntLike ($ this ->table , 'every_time ' );
749
749
}
750
750
751
- public function testViaMigrationMethod ()
751
+ public function testViaMigrationMethod (): void
752
752
{
753
753
$ this ->copyViaMigrations ();
754
754
0 commit comments