function QueryTest::testNoBaseTable

Tests entity query for entity type without base table.

@legacy-covers ::prepare

File

core/tests/Drupal/Tests/Core/Entity/Query/Sql/QueryTest.php, line 55

Class

QueryTest
Tests Drupal\Core\Entity\Query\Sql\Query.

Namespace

Drupal\Tests\Core\Entity\Query\Sql

Code

public function testNoBaseTable() : void {
  $this->expectException(QueryException::class);
  $this->expectExceptionMessage('No base table for example_entity_query, invalid query.');
  $this->query
    ->execute();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.