protected function OrderByTest::setUp in Drupal driver for SQL Server and SQL Azure 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Unit/OrderByTest.php \Drupal\Tests\sqlsrv\Unit\OrderByTest::setUp()
- 4.2.x tests/src/Unit/OrderByTest.php \Drupal\Tests\sqlsrv\Unit\OrderByTest::setUp()
- 3.1.x tests/src/Unit/OrderByTest.php \Drupal\Tests\sqlsrv\Unit\OrderByTest::setUp()
- 4.0.x tests/src/Unit/OrderByTest.php \Drupal\Tests\sqlsrv\Unit\OrderByTest::setUp()
- 4.1.x tests/src/Unit/OrderByTest.php \Drupal\Tests\sqlsrv\Unit\OrderByTest::setUp()
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ OrderByTest.php, line 26
Class
- OrderByTest
- Tests the orderBy() method of select queries.
Namespace
Drupal\Tests\sqlsrv\UnitCode
protected function setUp() {
$connection = $this
->getMockBuilder('Drupal\\Driver\\Database\\sqlsrv\\Connection')
->setMethods([
'condition',
])
->disableOriginalConstructor()
->getMockForAbstractClass();
$condition = new Condition('AND');
$connection
->method('condition')
->willReturn($condition);
$this->query = new Select('test', 'test', $connection);
}