You are here

public function DbCommandBaseTester::getDatabaseConnection in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTester::getDatabaseConnection()
  2. 9 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 125
Contains \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTest.

Class

DbCommandBaseTester
Concrete command implementation for testing base features.

Namespace

Drupal\Tests\system\Kernel\Scripts

Code

public function getDatabaseConnection(InputInterface $input) {
  return parent::getDatabaseConnection($input);
}