protected function OrderByTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 30 - Contains \Drupal\Tests\Core\Database\OrderByTest.
Class
- OrderByTest
- Tests the orderBy() method of select queries.
Namespace
Drupal\Tests\Core\DatabaseCode
protected function setUp() {
$connection = $this
->getMockBuilder('Drupal\\Core\\Database\\Connection')
->disableOriginalConstructor()
->getMockForAbstractClass();
$this->query = new Select('test', NULL, $connection);
}