class DbCommandBaseTester
Same name in other branches
- 9 core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTester
- 8.9.x core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTester
- 11.x core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTester
Concrete command implementation for testing base features.
Hierarchy
- class \Drupal\Core\Command\DbCommandBase extends \Symfony\Component\Console\Command\Command
- class \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTester extends \Drupal\Core\Command\DbCommandBase
Expanded class hierarchy of DbCommandBaseTester
File
-
core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbCommandBaseTest.php, line 109
Namespace
Drupal\Tests\system\Kernel\ScriptsView source
class DbCommandBaseTester extends DbCommandBase {
/**
* {@inheritdoc}
*/
public function configure() {
parent::configure();
$this->setName('test');
}
/**
* {@inheritdoc}
*/
public function getDatabaseConnection(InputInterface $input) {
return parent::getDatabaseConnection($input);
}
/**
* {@inheritdoc}
*/
protected function execute(InputInterface $input, OutputInterface $output) : int {
// Empty implementation for testing.
return 0;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
DbCommandBaseTester::configure | public | function | phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn | Overrides DbCommandBase::configure |
DbCommandBaseTester::execute | protected | function | ||
DbCommandBaseTester::getDatabaseConnection | public | function | Parse input options decide on a database. | Overrides DbCommandBase::getDatabaseConnection |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.