added new report: project view (#1738)
This commit is contained in:
committed by
GitHub
parent
0b7d551048
commit
c34e9f576d
@@ -12,7 +12,6 @@ namespace App\Tests\Command;
|
||||
use App\Command\InstallCommand;
|
||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
|
||||
/**
|
||||
* @covers \App\Command\InstallCommand
|
||||
@@ -25,7 +24,7 @@ class InstallCommandTest extends KernelTestCase
|
||||
*/
|
||||
protected $application;
|
||||
|
||||
protected function getCommand(): Command
|
||||
protected function setUp(): void
|
||||
{
|
||||
$kernel = self::bootKernel();
|
||||
$this->application = new Application($kernel);
|
||||
@@ -35,7 +34,11 @@ class InstallCommandTest extends KernelTestCase
|
||||
$container->getParameter('kernel.project_dir'),
|
||||
$container->get('doctrine')->getConnection()
|
||||
));
|
||||
}
|
||||
|
||||
return $this->application->find('kimai:install');
|
||||
public function testCommandName()
|
||||
{
|
||||
$command = $this->application->find('kimai:install');
|
||||
self::assertInstanceOf(InstallCommand::class, $command);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user