@@ -34,7 +34,7 @@ function outputExpectingLines(array $lines): OutputStyle
3434 return $ output ;
3535}
3636
37- it ('does not run a missing single migration ' , function (): void {
37+ it ('does not run a missing single migration ' , function () {
3838 $ output = outputExpectingLines ([
3939 '<error>Migration is not found:</error> 3020_11_01_045023_drop_test_index ' ,
4040 ]);
@@ -44,7 +44,7 @@ function outputExpectingLines(array $lines): OutputStyle
4444 expect ($ migrator ->migrateOne ('3020_11_01_045023_drop_test_index ' ))->toBe ($ migrator );
4545});
4646
47- it ('runs a single migration when it exists ' , function (): void {
47+ it ('runs a single migration when it exists ' , function () {
4848 Index::shouldReceive ('putMapping ' )->once ();
4949
5050 $ output = outputExpectingLines ([
@@ -61,7 +61,7 @@ function outputExpectingLines(array $lines): OutputStyle
6161 ])->exists ())->toBeTrue ();
6262});
6363
64- it ('does not run all migrations when the directory is empty ' , function (): void {
64+ it ('does not run all migrations when the directory is empty ' , function () {
6565 $ tmpDirectory = config ('opensearch-migrations.storage_directory ' ).'/tmp ' ;
6666
6767 @mkdir ($ tmpDirectory );
@@ -78,7 +78,7 @@ function outputExpectingLines(array $lines): OutputStyle
7878 @rmdir ($ tmpDirectory );
7979});
8080
81- it ('runs all outstanding migrations ' , function (): void {
81+ it ('runs all outstanding migrations ' , function () {
8282 Index::shouldReceive ('putMapping ' )->once ();
8383
8484 $ output = outputExpectingLines ([
@@ -95,7 +95,7 @@ function outputExpectingLines(array $lines): OutputStyle
9595 ])->exists ())->toBeTrue ();
9696});
9797
98- it ('does not roll back a missing single migration ' , function (): void {
98+ it ('does not roll back a missing single migration ' , function () {
9999 $ output = outputExpectingLines ([
100100 '<error>Migration is not found:</error> 3020_11_01_045023_drop_test_index ' ,
101101 ]);
@@ -105,7 +105,7 @@ function outputExpectingLines(array $lines): OutputStyle
105105 expect ($ migrator ->rollbackOne ('3020_11_01_045023_drop_test_index ' ))->toBe ($ migrator );
106106});
107107
108- it ('does not roll back a migration that has not run ' , function (): void {
108+ it ('does not roll back a migration that has not run ' , function () {
109109 $ output = outputExpectingLines ([
110110 '<error>Migration is not yet migrated:</error> 2019_08_10_142230_update_test_index_mapping ' ,
111111 ]);
@@ -115,7 +115,7 @@ function outputExpectingLines(array $lines): OutputStyle
115115 expect ($ migrator ->rollbackOne ('2019_08_10_142230_update_test_index_mapping ' ))->toBe ($ migrator );
116116});
117117
118- it ('rolls back a migrated single migration ' , function (): void {
118+ it ('rolls back a migrated single migration ' , function () {
119119 Index::shouldReceive ('drop ' )->once ();
120120
121121 $ output = outputExpectingLines ([
@@ -132,7 +132,7 @@ function outputExpectingLines(array $lines): OutputStyle
132132 ])->exists ())->toBeFalse ();
133133});
134134
135- it ('does not roll back the last batch when some files are missing ' , function (): void {
135+ it ('does not roll back the last batch when some files are missing ' , function () {
136136 $ output = outputExpectingLines ([
137137 '<error>Migration is not found:</error> 2019_03_10_101500_create_test_index ' ,
138138 ]);
@@ -146,7 +146,7 @@ function outputExpectingLines(array $lines): OutputStyle
146146 expect ($ migrator ->rollbackLastBatch ())->toBe ($ migrator );
147147});
148148
149- it ('rolls back the last batch when all files are present ' , function (): void {
149+ it ('rolls back the last batch when all files are present ' , function () {
150150 Index::shouldReceive ('putMapping ' )->once ();
151151
152152 $ output = outputExpectingLines ([
@@ -167,7 +167,7 @@ function outputExpectingLines(array $lines): OutputStyle
167167 ])->exists ())->toBeFalse ();
168168});
169169
170- it ('does not roll back all migrations when some files are missing ' , function (): void {
170+ it ('does not roll back all migrations when some files are missing ' , function () {
171171 $ output = outputExpectingLines ([
172172 '<error>Migration is not found:</error> 2019_03_10_101500_create_test_index,2019_01_01_053550_drop_test_index ' ,
173173 ]);
@@ -182,7 +182,7 @@ function outputExpectingLines(array $lines): OutputStyle
182182 expect ($ migrator ->rollbackAll ())->toBe ($ migrator );
183183});
184184
185- it ('rolls back all migrations when all files are present ' , function (): void {
185+ it ('rolls back all migrations when all files are present ' , function () {
186186 Index::shouldReceive ('putMapping ' )->once ();
187187 Index::shouldReceive ('drop ' )->once ();
188188
@@ -204,7 +204,7 @@ function outputExpectingLines(array $lines): OutputStyle
204204 expect (DB ::table ($ table )->where ('migration ' , '2018_12_01_081000_create_test_index ' )->exists ())->toBeFalse ();
205205});
206206
207- it ('displays status ' , function (): void {
207+ it ('displays status ' , function () {
208208 $ output = Mockery::mock (OutputStyle::class);
209209
210210 $ output ->shouldReceive ('table ' )->once ()->with (
@@ -220,13 +220,13 @@ function outputExpectingLines(array $lines): OutputStyle
220220 expect ($ migrator ->showStatus ())->toBe ($ migrator );
221221});
222222
223- it ('prepares the repository and storage ' , function (): void {
223+ it ('prepares the repository and storage ' , function () {
224224 [, $ migrator ] = seededMigrator (Mockery::mock (OutputStyle::class));
225225
226226 expect ($ migrator ->prepare ())->toBe ($ migrator );
227227});
228228
229- it ('creates the repository table when preparing ' , function (): void {
229+ it ('creates the repository table when preparing ' , function () {
230230 $ output = Mockery::mock (OutputStyle::class);
231231 [$ table , $ migrator ] = seededMigrator ($ output );
232232
@@ -236,7 +236,7 @@ function outputExpectingLines(array $lines): OutputStyle
236236 expect (Schema::hasTable ($ table ))->toBeTrue ();
237237});
238238
239- it ('creates the storage directory when preparing ' , function (): void {
239+ it ('creates the storage directory when preparing ' , function () {
240240 $ directory = sys_get_temp_dir ().'/opensearch_migrations_missing_directory ' ;
241241
242242 config ()->set ('opensearch-migrations.storage_directory ' , $ directory );
0 commit comments