You are here

protected function EntityQueryTest::assertResult in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/EntityQueryTest.php \Drupal\system\Tests\Entity\EntityQueryTest::assertResult()
4 calls to EntityQueryTest::assertResult()
EntityQueryTest::testEntityQuery in core/modules/system/src/Tests/Entity/EntityQueryTest.php
Test basic functionality.
EntityQueryTest::testNestedConditionGroups in core/modules/system/src/Tests/Entity/EntityQueryTest.php
Tests that nested condition groups work as expected.
EntityQueryTest::testSort in core/modules/system/src/Tests/Entity/EntityQueryTest.php
Test sort().
EntityQueryTest::testTableSort in core/modules/system/src/Tests/Entity/EntityQueryTest.php
Test tablesort().

File

core/modules/system/src/Tests/Entity/EntityQueryTest.php, line 519
Contains \Drupal\system\Tests\Entity\EntityQueryTest.

Class

EntityQueryTest
Tests Entity Query functionality.

Namespace

Drupal\system\Tests\Entity

Code

protected function assertResult() {
  $assert = array();
  $expected = func_get_args();
  if ($expected && is_array($expected[0])) {
    $expected = $expected[0];
  }
  foreach ($expected as $binary) {
    $assert[$binary] = strval($binary);
  }
  $this
    ->assertIdentical($this->queryResults, $assert);
}