Drop SQLite support (#2405)
This commit is contained in:
38
tests/Command/ResetDevelopmentCommandTest.php
Normal file
38
tests/Command/ResetDevelopmentCommandTest.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Kimai time-tracking app.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace App\Tests\Command;
|
||||
|
||||
use App\Command\ResetDevelopmentCommand;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
|
||||
/**
|
||||
* @covers \App\Command\ResetDevelopmentCommand
|
||||
* @group integration
|
||||
*/
|
||||
class ResetDevelopmentCommandTest extends KernelTestCase
|
||||
{
|
||||
public function testCommandName()
|
||||
{
|
||||
$kernel = self::bootKernel();
|
||||
$application = new Application($kernel);
|
||||
$application->add(new ResetDevelopmentCommand('test', $this->createMock(EntityManagerInterface::class)));
|
||||
|
||||
$command = $application->find('kimai:reset-dev');
|
||||
self::assertInstanceOf(ResetDevelopmentCommand::class, $command);
|
||||
}
|
||||
|
||||
public function testCommandNameIsNotEnabledInProd()
|
||||
{
|
||||
$command = new ResetDevelopmentCommand('prod', $this->createMock(EntityManagerInterface::class));
|
||||
self::assertFalse($command->isEnabled());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user