function EntityQueryTest::assertRevisionResult

Same name in other branches
  1. 8.9.x 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()
  3. 11.x core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php \Drupal\KernelTests\Core\Entity\EntityQueryTest::assertRevisionResult()

@internal

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 754

Class

EntityQueryTest
Tests Entity Query functionality.

Namespace

Drupal\KernelTests\Core\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.