function DbToolsApplicationTest::testDumpCommandRegistration
Same name in other branches
- 9 core/modules/system/tests/src/Kernel/Scripts/DbToolsApplicationTest.php \Drupal\Tests\system\Kernel\Scripts\DbToolsApplicationTest::testDumpCommandRegistration()
- 8.9.x core/modules/system/tests/src/Kernel/Scripts/DbToolsApplicationTest.php \Drupal\Tests\system\Kernel\Scripts\DbToolsApplicationTest::testDumpCommandRegistration()
- 10 core/modules/system/tests/src/Kernel/Scripts/DbToolsApplicationTest.php \Drupal\Tests\system\Kernel\Scripts\DbToolsApplicationTest::testDumpCommandRegistration()
Tests that the dump command is correctly registered.
File
-
core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbToolsApplicationTest.php, line 23
Class
- DbToolsApplicationTest
- Test that the DbToolsApplication works correctly.
Namespace
Drupal\Tests\system\Kernel\ScriptsCode
public function testDumpCommandRegistration() : void {
$application = new DbToolsApplication();
$command = $application->find('dump');
$this->assertInstanceOf('\\Drupal\\Core\\Command\\DbDumpCommand', $command);
$this->assertSame(\Drupal::VERSION, $application->getVersion());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.