You are here

protected function EntityQueryAggregateTest::assertSortedResults in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php \Drupal\KernelTests\Core\Entity\EntityQueryAggregateTest::assertSortedResults()
  2. 10 core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php \Drupal\KernelTests\Core\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/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php
Test aggregation support.

File

core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php, line 605

Class

EntityQueryAggregateTest
Tests the Entity Query Aggregation API.

Namespace

Drupal\KernelTests\Core\Entity

Code

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