protected function EntityQueryTest::assertResult

3 calls to EntityQueryTest::assertResult()
EntityQueryTest::testEntityQuery in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryTest.php
Test basic functionality.
EntityQueryTest::testSort in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryTest.php
Test sort().
EntityQueryTest::testTableSort in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryTest.php
Test tablesort().

File

drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryTest.php, line 436
Definition of Drupal\system\Tests\Entity\EntityQueryTest.

Class

EntityQueryTest
Tests the basic Entity API.

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);
}