function QueryTest::testNoRevisionTable
Tests revision entity query for entity type without revision table.
@legacy-covers ::prepare
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ Query/ Sql/ QueryTest.php, line 66
Class
Namespace
Drupal\Tests\Core\Entity\Query\SqlCode
public function testNoRevisionTable() : void {
$this->expectException(QueryException::class);
$this->expectExceptionMessage('No revision table for example_entity_query, invalid query.');
$this->query
->allRevisions()
->execute();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.