Use find for remaining useless addition
This commit is contained in:
parent
6915a92047
commit
17497275b2
@ -3,8 +3,6 @@
|
|||||||
namespace Tests\Wallabag\CoreBundle\Command;
|
namespace Tests\Wallabag\CoreBundle\Command;
|
||||||
|
|
||||||
use DAMA\DoctrineTestBundle\Doctrine\DBAL\StaticDriver;
|
use DAMA\DoctrineTestBundle\Doctrine\DBAL\StaticDriver;
|
||||||
use Doctrine\Bundle\DoctrineBundle\Command\CreateDatabaseDoctrineCommand;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Command\DropDatabaseDoctrineCommand;
|
|
||||||
use Doctrine\DBAL\Connection;
|
use Doctrine\DBAL\Connection;
|
||||||
use Doctrine\DBAL\Platforms\PostgreSqlPlatform;
|
use Doctrine\DBAL\Platforms\PostgreSqlPlatform;
|
||||||
use Doctrine\DBAL\Platforms\SqlitePlatform;
|
use Doctrine\DBAL\Platforms\SqlitePlatform;
|
||||||
@ -214,8 +212,7 @@ class InstallCommandTest extends WallabagCoreTestCase
|
|||||||
$application = new Application($this->getClient()->getKernel());
|
$application = new Application($this->getClient()->getKernel());
|
||||||
|
|
||||||
// drop database first, so the install command won't ask to reset things
|
// drop database first, so the install command won't ask to reset things
|
||||||
$command = new DropDatabaseDoctrineCommand();
|
$command = $application->find('doctrine:database:drop');
|
||||||
$command->setApplication($application);
|
|
||||||
$command->run(new ArrayInput([
|
$command->run(new ArrayInput([
|
||||||
'command' => 'doctrine:database:drop',
|
'command' => 'doctrine:database:drop',
|
||||||
'--force' => true,
|
'--force' => true,
|
||||||
@ -223,8 +220,7 @@ class InstallCommandTest extends WallabagCoreTestCase
|
|||||||
|
|
||||||
$this->getClient()->getContainer()->get(ManagerRegistry::class)->getConnection()->close();
|
$this->getClient()->getContainer()->get(ManagerRegistry::class)->getConnection()->close();
|
||||||
|
|
||||||
$command = new CreateDatabaseDoctrineCommand();
|
$command = $application->find('doctrine:database:create');
|
||||||
$command->setApplication($application);
|
|
||||||
$command->run(new ArrayInput([
|
$command->run(new ArrayInput([
|
||||||
'command' => 'doctrine:database:create',
|
'command' => 'doctrine:database:create',
|
||||||
'--env' => 'test',
|
'--env' => 'test',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user