public function DbToolsApplicationTest::testDumpCommandRegistration in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/src/Kernel/Scripts/DbToolsApplicationTest.php \Drupal\Tests\system\Kernel\Scripts\DbToolsApplicationTest::testDumpCommandRegistration()
Test that the dump command is correctly registered.
File
- core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbToolsApplicationTest.php, line 26 - Contains \Drupal\Tests\system\Kernel\Scripts\DbToolsApplicationTest.
Class
- DbToolsApplicationTest
- Test that the DbToolsApplication works correctly.
Namespace
Drupal\Tests\system\Kernel\ScriptsCode
public function testDumpCommandRegistration() {
$application = new DbToolsApplication();
$command = $application
->find('dump');
$this
->assertInstanceOf('\\Drupal\\Core\\Command\\DbDumpCommand', $command);
}