You are here

protected function EntityQueryAggregateTest::assertSortedResults in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php \Drupal\system\Tests\Entity\EntityQueryAggregateTest::assertSortedResults()

Asserts the results as expected regardless of order in rows.

Parameters

array $expected: An array of the expected results.

1 call to EntityQueryAggregateTest::assertSortedResults()
EntityQueryAggregateTest::testAggregation in core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php
Test aggregation support.

File

core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php, line 582
Contains \Drupal\system\Tests\Entity\EntityQueryAggregateTest.

Class

EntityQueryAggregateTest
Tests the Entity Query Aggregation API.

Namespace

Drupal\system\Tests\Entity

Code

protected function assertSortedResults($expected) {
  return $this
    ->assertResults($expected, TRUE);
}