Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: zenstruck/foundry
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2b0f3a17bfe52752d7e9bd26bed93412c313dc5d
Choose a base ref
..
head repository: zenstruck/foundry
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3aaa75e4b27cd0d55763d0cf0b12374ea32792f3
Choose a head ref
Showing with 3 additions and 10 deletions.
  1. +3 −10 tests/Integration/Migration/ResetDatabaseWithMigrationTest.php
13 changes: 3 additions & 10 deletions tests/Integration/Migration/ResetDatabaseWithMigrationTest.php
Original file line number Diff line number Diff line change
@@ -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);
}

/**