Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Database/OrderByTest.php \Drupal\Tests\Core\Database\OrderByTest::setUp()
  2. 9 core/tests/Drupal/Tests/Core/Database/OrderByTest.php \Drupal\Tests\Core\Database\OrderByTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Database/OrderByTest.php, line 29

Class

OrderByTest
Tests the orderBy() method of select queries.

Namespace

Drupal\Tests\Core\Database

Code

protected function setUp() : void {
  parent::setUp();
  $mockPdo = $this
    ->createMock(StubPDO::class);
  $connection = new StubConnection($mockPdo, []);
  $this->query = new Select($connection, 'test', NULL);
}