You are here

protected function WebTestBase::getDatabaseTypes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/WebTestBase.php \Drupal\simpletest\WebTestBase::getDatabaseTypes()

Returns all supported database driver installer objects.

This wraps drupal_get_database_types() for use without a current container.

Return value

\Drupal\Core\Database\Install\Tasks[] An array of available database driver installer objects.

1 call to WebTestBase::getDatabaseTypes()
WebTestBase::installParameters in core/modules/simpletest/src/WebTestBase.php
Returns the parameters that will be used when Simpletest installs Drupal.

File

core/modules/simpletest/src/WebTestBase.php, line 1048
Contains \Drupal\simpletest\WebTestBase.

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function getDatabaseTypes() {
  \Drupal::setContainer($this->originalContainer);
  $database_types = drupal_get_database_types();
  \Drupal::unsetContainer();
  return $database_types;
}