DbToolsApplicationTest.php in Drupal 10
File
core/modules/system/tests/src/Kernel/Scripts/DbToolsApplicationTest.php
View source
<?php
namespace Drupal\Tests\system\Kernel\Scripts;
use Drupal\Core\Command\DbToolsApplication;
use Drupal\KernelTests\KernelTestBase;
class DbToolsApplicationTest extends KernelTestBase {
public function testDumpCommandRegistration() {
$application = new DbToolsApplication();
$command = $application
->find('dump');
$this
->assertInstanceOf('\\Drupal\\Core\\Command\\DbDumpCommand', $command);
$this
->assertSame(\Drupal::VERSION, $application
->getVersion());
}
public function testImportCommandRegistration() {
$application = new DbToolsApplication();
$command = $application
->find('import');
$this
->assertInstanceOf('\\Drupal\\Core\\Command\\DbImportCommand', $command);
}
}