You are here

function EntityFieldQueryViewsSortTest::testSort in EntityFieldQuery Views Backend 8

Tests view sort.

File

src/Tests/EntityFieldQueryViewsSortTest.php, line 45
Tests for EntityFieldQuery Views query features.

Class

EntityFieldQueryViewsSortTest
Class EntityFieldQueryViewsSortTest

Namespace

Drupal\efq_views\Tests

Code

function testSort() {
  $this
    ->runTestView('field_integer', array(
    1,
    3,
    0,
    2,
  ));
  $this
    ->runTestView('label', array(
    1,
    3,
    0,
    2,
  ));
  $this
    ->runTestView('entity_id', array(
    0,
    1,
    2,
    3,
  ));
}