You are here

public function QueryTest::testNoRevisionTable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Entity/Query/Sql/QueryTest.php \Drupal\Tests\Core\Entity\Query\Sql\QueryTest::testNoRevisionTable()

Tests revision entity query for entity type without revision table.

@covers ::prepare

@expectedException \Drupal\Core\Entity\Query\QueryException @expectedExceptionMessage No revision table for example_entity_query, invalid query.

File

core/tests/Drupal/Tests/Core/Entity/Query/Sql/QueryTest.php, line 60
Contains \Drupal\Tests\Core\Entity\Query\Sql\QueryTest.

Class

QueryTest
@coversDefaultClass \Drupal\Core\Entity\Query\Sql\Query @group Entity

Namespace

Drupal\Tests\Core\Entity\Query\Sql

Code

public function testNoRevisionTable() {
  $this->query
    ->allRevisions()
    ->execute();
}