Skip to content

Commit

Permalink
tests: fix a test after a bug was resolved in doctrine migrations (ze…
Browse files Browse the repository at this point in the history
  • Loading branch information
nikophil authored Jan 18, 2025
1 parent 200cfdd commit 57c42bc
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions tests/Integration/Migration/ResetDatabaseWithMigrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,9 @@ public function it_generates_valid_schema(): void
$application = new Application(self::bootKernel());
$application->setAutoExit(false);

$exit = $application->run(
new ArrayInput(['command' => 'doctrine:schema:validate', '-v' => true]),
$output = new BufferedOutput()
);

// The command actually fails, because of a bug in doctrine ORM 3!
// https://github.com/doctrine/migrations/issues/1406
self::assertSame(2, $exit, \sprintf('Schema is not valid: %s', $commandOutput = $output->fetch()));
self::assertStringContainsString('1 schema diff(s) detected', $commandOutput);
self::assertStringContainsString('DROP TABLE doctrine_migration_versions', $commandOutput);
$exit = $application->run(new ArrayInput(['command' => 'doctrine:schema:validate', '-v' => true]), new BufferedOutput());

self::assertSame(0, $exit);
}

/**
Expand Down

0 comments on commit 57c42bc

Please sign in to comment.