class DbCommandBaseTester in Drupal 8
Same name and namespace in other branches
- 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 110 - 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) {
// Empty implementation for testing.
return 0;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DbCommandBaseTester:: |
public | function |
Configures the current command. Overrides DbCommandBase:: |
|
DbCommandBaseTester:: |
protected | function | Executes the current command. | |
DbCommandBaseTester:: |
public | function |
Parse input options decide on a database. Overrides DbCommandBase:: |