find('doctrine:migrations:status'); $commandTester = new CommandTester($command); $commandTester->execute([ // pass arguments to the helper '--no-interaction', ]); $output = $commandTester->getDisplay(); $this->assertStringContainsString('Chamilo\CoreBundle\Migrations\Schema\V200', $output); } public function testMigrationsList(): void { $kernel = static::createKernel(); $application = new Application($kernel); $command = $application->find('doctrine:migrations:list'); $commandTester = new CommandTester($command); $commandTester->execute([ // pass arguments to the helper '--no-interaction', ]); $output = $commandTester->getDisplay(); $this->assertStringContainsString('Chamilo\CoreBundle\Migrations\Schema\V200', $output); } }