You are here

public function QueryTest::testNoBaseTable 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::testNoBaseTable()

Tests entity query for entity type without base table.

@covers ::prepare

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

File

core/tests/Drupal/Tests/Core/Entity/Query/Sql/QueryTest.php, line 48
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 testNoBaseTable() {
  $this->query
    ->execute();
}