function EntityQueryTest::assertRevisionResult

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

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.