Skip to content

Commit df2adca

Browse files
authored
Merge pull request #7847 from samsonasik/class-use
Apply ::class class constant on MigrationRunnerTest
2 parents 2c06140 + 4a26b68 commit df2adca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/system/Database/Migrations/MigrationRunnerTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
use Config\Services;
2424
use org\bovigo\vfs\vfsStream;
2525
use org\bovigo\vfs\vfsStreamDirectory;
26+
use Tests\Support\MigrationTestMigrations\Database\Migrations\Migration_another_migration;
27+
use Tests\Support\MigrationTestMigrations\Database\Migrations\Migration_some_migration;
2628

2729
/**
2830
* @group DatabaseLive
@@ -258,7 +260,7 @@ public function testFindMigrationsSuccessTimestamp(): void
258260
'version' => '2018-01-24-102301',
259261
'name' => 'Some_migration',
260262
'path' => realpath(TESTPATH . '_support/MigrationTestMigrations/Database/Migrations/2018-01-24-102301_Some_migration.php'),
261-
'class' => 'Tests\Support\MigrationTestMigrations\Database\Migrations\Migration_some_migration',
263+
'class' => Migration_some_migration::class,
262264
'namespace' => 'Tests\Support\MigrationTestMigrations',
263265
];
264266
$mig1->uid = $runner->getObjectUid($mig1);
@@ -267,7 +269,7 @@ public function testFindMigrationsSuccessTimestamp(): void
267269
'version' => '2018-01-24-102302',
268270
'name' => 'Another_migration',
269271
'path' => realpath(TESTPATH . '_support/MigrationTestMigrations/Database/Migrations/2018-01-24-102302_Another_migration.php'),
270-
'class' => 'Tests\Support\MigrationTestMigrations\Database\Migrations\Migration_another_migration',
272+
'class' => Migration_another_migration::class,
271273
'namespace' => 'Tests\Support\MigrationTestMigrations',
272274
'uid' => '20180124102302Tests\Support\MigrationTestMigrations\Database\Migrations\Migration_another_migration',
273275
];

0 commit comments

Comments
 (0)