You are here

public function EntityQueryRelationshipTest::testInvalidSpecifier in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php \Drupal\KernelTests\Core\Entity\EntityQueryRelationshipTest::testInvalidSpecifier()

Tests the invalid specifier in the query relationship.

File

core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php, line 211

Class

EntityQueryRelationshipTest
Tests the Entity Query relationship API.

Namespace

Drupal\KernelTests\Core\Entity

Code

public function testInvalidSpecifier() {
  $this
    ->expectException(PluginNotFoundException::class);
  $this->container
    ->get('entity_type.manager')
    ->getStorage('taxonomy_term')
    ->getQuery()
    ->accessCheck(FALSE)
    ->condition('langcode.language.foo', 'bar')
    ->execute();
}