You are here

public function DbToolsApplicationTest::testImportCommandRegistration in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Kernel/Scripts/DbToolsApplicationTest.php \Drupal\Tests\system\Kernel\Scripts\DbToolsApplicationTest::testImportCommandRegistration()

Test that the dump command is correctly registered.

File

core/modules/system/tests/src/Kernel/Scripts/DbToolsApplicationTest.php, line 35
Contains \Drupal\Tests\system\Kernel\Scripts\DbToolsApplicationTest.

Class

DbToolsApplicationTest
Test that the DbToolsApplication works correctly.

Namespace

Drupal\Tests\system\Kernel\Scripts

Code

public function testImportCommandRegistration() {
  $application = new DbToolsApplication();
  $command = $application
    ->find('import');
  $this
    ->assertInstanceOf('\\Drupal\\Core\\Command\\DbImportCommand', $command);
}