You are here

protected function EntityQueryAggregateTest::assertSortedResults in Drupal 9

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

File

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

Class

EntityQueryAggregateTest
Tests the Entity Query Aggregation API.

Namespace

Drupal\KernelTests\Core\Entity

Code

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