You are here

public function DbCommandBaseTester::getDatabaseConnection in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 126
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);
}