Skip to content

Commit

Permalink
coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
kfrankiewicz committed Nov 7, 2024
1 parent 9f64ea0 commit 61f9599
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/Metadata/Storage/TableMetadataStorageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
use Doctrine\Migrations\Version\Version;
use PHPUnit\Framework\TestCase;
use Psr\Log\Test\TestLogger;
use ReflectionClass;

use function sprintf;

Expand Down Expand Up @@ -404,17 +405,17 @@ public function testGetSql(): void
self::assertCount(0, $this->connection->fetchAllAssociative($sql));
}

public function testIsAlreadyV3FormatDoesntMissTheSameVersions()
public function testIsAlreadyV3FormatDoesntMissTheSameVersions(): void
{
$availableMigration = new AvailableMigration(
$availableMigration = new AvailableMigration(
new Version('Foo\\Version1234'),
$this->createMock(AbstractMigration::class)
$this->createMock(AbstractMigration::class),
);
$executedMigrationV3 = new ExecutedMigration(new Version('Foo\\Version1234'));
$executedMigrationV3 = new ExecutedMigration(new Version('Foo\\Version1234'));
$executedMigrationOlder = new ExecutedMigration(new Version('Version1234'));

$reflection = new \ReflectionClass(TableMetadataStorage::class);
$method = $reflection->getMethod('isAlreadyV3Format');
$reflection = new ReflectionClass(TableMetadataStorage::class);
$method = $reflection->getMethod('isAlreadyV3Format');
$method->setAccessible(true);

self::assertTrue($method->invokeArgs($this->storage, [$availableMigration, $executedMigrationV3]));
Expand Down

0 comments on commit 61f9599

Please sign in to comment.