function FieldResolverTest::testResolveInternalEntityQueryPath

Same name and namespace in other branches
  1. 10 core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php \Drupal\Tests\jsonapi\Kernel\Context\FieldResolverTest::testResolveInternalEntityQueryPath()
  2. 11.x core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php \Drupal\Tests\jsonapi\Kernel\Context\FieldResolverTest::testResolveInternalEntityQueryPath()
  3. 9 core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php \Drupal\Tests\jsonapi\Kernel\Context\FieldResolverTest::testResolveInternalEntityQueryPath()
  4. 8.9.x core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php \Drupal\Tests\jsonapi\Kernel\Context\FieldResolverTest::testResolveInternalEntityQueryPath()

Tests resolve internal entity query path.

Attributes

#[DataProvider('resolveInternalEntityQueryPathProvider')]

File

core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php, line 182

Class

FieldResolverTest
Tests Drupal\jsonapi\Context\FieldResolver.

Namespace

Drupal\Tests\jsonapi\Kernel\Context

Code

public function testResolveInternalEntityQueryPath($expect, $external_path, $entity_type_id = 'entity_test_with_bundle', $bundle = 'bundle1') : void {
  $resource_type = $this->resourceTypeRepository
    ->get($entity_type_id, $bundle);
  $this->assertEquals($expect, $this->sut
    ->resolveInternalEntityQueryPath($resource_type, $external_path));
}

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