public function DbCommandBaseTester::getDatabaseConnection 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::getDatabaseConnection()
- 10 core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTester::getDatabaseConnection()
Parse input options decide on a database.
Parameters
\Symfony\Component\Console\Input\InputInterface $input: Input object.
Return value
\Drupal\Core\Database\Connection
Overrides DbCommandBase::getDatabaseConnection
File
- core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbCommandBaseTest.php, line 123 - Contains \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTest.
Class
- DbCommandBaseTester
- Concrete command implementation for testing base features.
Namespace
Drupal\Tests\system\Kernel\ScriptsCode
public function getDatabaseConnection(InputInterface $input) {
return parent::getDatabaseConnection($input);
}