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
- 10 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\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() : void {
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 | Overrides DbCommandBase::configure | |
DbCommandBaseTester::execute | protected | function | ||
DbCommandBaseTester::getDatabaseConnection | public | function | Overrides DbCommandBase::getDatabaseConnection |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.