Reworked RunSqlCommandTest

parent c0b8e864
......@@ -35,7 +35,6 @@ parameters:
# impossible inference for covariance
- '~^Property Doctrine\\Tests\\DBAL\\Types\\\S+Test::\$type \(Doctrine\\DBAL\\Types\\\S+Type\) does not accept Doctrine\\DBAL\\Types\\Type\.\z~'
- '~^Property Doctrine\\Tests\\DBAL\\Tools\\Console\\RunSqlCommandTest::\$command \(Doctrine\\DBAL\\Tools\\Console\\Command\\RunSqlCommand\) does not accept Symfony\\Component\\Console\\Command\\Command\.\z~'
# https://github.com/doctrine/dbal/pull/3582/files#r290847062
-
......
......@@ -26,10 +26,10 @@ class RunSqlCommandTest extends TestCase
protected function setUp() : void
{
$application = new Application();
$application->add(new RunSqlCommand());
$this->command = new RunSqlCommand();
(new Application())->add($this->command);
$this->command = $application->find('dbal:run-sql');
$this->commandTester = new CommandTester($this->command);
$this->connectionMock = $this->createMock(Connection::class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment