function DbToolsApplicationTest::testImportCommandRegistration
Tests that the dump command is correctly registered.
File
- 
              core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbToolsApplicationTest.php, line 33  
Class
- DbToolsApplicationTest
 - Test that the DbToolsApplication works correctly.
 
Namespace
Drupal\Tests\system\Kernel\ScriptsCode
public function testImportCommandRegistration() : void {
  $application = new DbToolsApplication();
  $command = $application->find('import');
  $this->assertInstanceOf('\\Drupal\\Core\\Command\\DbImportCommand', $command);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.