class DbCommandBaseTester in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTester
- 9 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
Expanded class hierarchy of DbCommandBaseTester
File
- core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbCommandBaseTest.php, line 112 - Contains \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTest.
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DbCommandBaseTester:: |
public | function |
Overrides DbCommandBase:: |
|
DbCommandBaseTester:: |
protected | function | ||
DbCommandBaseTester:: |
public | function |
Parse input options decide on a database. Overrides DbCommandBase:: |