TestRunTest::$connection

Same name and namespace in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Test/TestRunTest.php \Drupal\KernelTests\Core\Test\TestRunTest::connection

The database connection for testing.

NOTE: this is the connection to the fixture database to allow testing the storage class, NOT the database where actual tests results are stored.

Type: \Drupal\Core\Database\Connection

File

core/tests/Drupal/KernelTests/Core/Test/TestRunTest.php, line 28

Class

TestRunTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Test%21TestRun.php/class/TestRun/11.x" title="Implements an object that tracks execution of a test run." class="local">\Drupal\Core\Test\TestRun</a> @group Test

Namespace

Drupal\KernelTests\Core\Test

Code

protected $connection;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.