You are here

protected function OrderByTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 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 27

Class

OrderByTest
Tests the orderBy() method of select queries.

Namespace

Drupal\Tests\Core\Database

Code

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