Created command to run migrations with a lock

This commit is contained in:
Alejandro Celaya
2019-08-06 20:48:48 +02:00
parent 1341d4fe57
commit c04f0af56f
7 changed files with 54 additions and 6 deletions

View File

@@ -107,7 +107,7 @@ class CreateDatabaseCommandTest extends TestCase
}
/** @test */
public function tablesAreCreatedIfDatabaseIsEMpty(): void
public function tablesAreCreatedIfDatabaseIsEmpty(): void
{
$shlinkDatabase = 'shlink_database';
$getDatabase = $this->regularConn->getDatabase()->willReturn($shlinkDatabase);
@@ -119,7 +119,7 @@ class CreateDatabaseCommandTest extends TestCase
'/usr/local/bin/php',
CreateDatabaseCommand::DOCTRINE_HELPER_SCRIPT,
CreateDatabaseCommand::DOCTRINE_HELPER_COMMAND,
]);
], Argument::cetera());
$this->commandTester->execute([]);
$output = $this->commandTester->getDisplay();