You are here

protected function EntityQueryTest::assertRevisionResult in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php \Drupal\KernelTests\Core\Entity\EntityQueryTest::assertRevisionResult()
  2. 10 core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php \Drupal\KernelTests\Core\Entity\EntityQueryTest::assertRevisionResult()
1 call to EntityQueryTest::assertRevisionResult()
EntityQueryTest::testEntityQuery in core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
Tests basic functionality.

File

core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php, line 735

Class

EntityQueryTest
Tests Entity Query functionality.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function assertRevisionResult($keys, $expected) {
  $assert = [];
  foreach ($expected as $key => $binary) {
    $assert[$keys[$key]] = strval($binary);
  }
  $this
    ->assertSame($assert, $this->queryResults);
  return $assert;
}