You are here

protected function EntityFieldQueryViewsTestBase::getIds in EntityFieldQuery Views Backend 8

2 calls to EntityFieldQueryViewsTestBase::getIds()
EntityFieldQueryViewsSortTest::runTestView in src/Tests/EntityFieldQueryViewsSortTest.php
EntityFieldQueryViewsTermTest::testTermFilter in src/Tests/EntityFieldQueryViewsTermTest.php

File

src/Tests/EntityFieldQueryViewsTestBase.php, line 113
Tests for EFQ Views query features.

Class

EntityFieldQueryViewsTestBase
Abstract class for EFQ views testing.

Namespace

Drupal\efq_views\Tests

Code

protected function getIds($view_result) {
  $ids = array();
  foreach ($view_result as $result) {
    $ids[$result->entity_id] = $result->entity_id;
  }
  return $ids;
}