public function QueryTest::testNoRevisionTable in Drupal 9
Same name and namespace in other branches
- 8 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
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ Query/ Sql/ QueryTest.php, line 52
Class
- QueryTest
- @coversDefaultClass \Drupal\Core\Entity\Query\Sql\Query @group Entity
Namespace
Drupal\Tests\Core\Entity\Query\SqlCode
public function testNoRevisionTable() {
$this
->expectException(QueryException::class);
$this
->expectExceptionMessage('No revision table for example_entity_query, invalid query.');
$this->query
->allRevisions()
->execute();
}