function EntityQueryRelationshipTest::testInvalidSpecifier
Tests the invalid specifier in the query relationship.
File
- 
              core/tests/ Drupal/ KernelTests/ Core/ Entity/ EntityQueryRelationshipTest.php, line 214 
Class
- EntityQueryRelationshipTest
- Tests the Entity Query relationship API.
Namespace
Drupal\KernelTests\Core\EntityCode
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();
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
