public function FieldResolverTest::testResolveInternalEntityQueryPath in Drupal 10
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php \Drupal\Tests\jsonapi\Kernel\Context\FieldResolverTest::testResolveInternalEntityQueryPath()
- 9 core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php \Drupal\Tests\jsonapi\Kernel\Context\FieldResolverTest::testResolveInternalEntityQueryPath()
@covers ::resolveInternalEntityQueryPath @dataProvider resolveInternalEntityQueryPathProvider
File
- core/
modules/ jsonapi/ tests/ src/ Kernel/ Context/ FieldResolverTest.php, line 170
Class
- FieldResolverTest
- @coversDefaultClass \Drupal\jsonapi\Context\FieldResolver @group jsonapi
Namespace
Drupal\Tests\jsonapi\Kernel\ContextCode
public function testResolveInternalEntityQueryPath($expect, $external_path, $entity_type_id = 'entity_test_with_bundle', $bundle = 'bundle1') {
$resource_type = $this->resourceTypeRepository
->get($entity_type_id, $bundle);
$this
->assertEquals($expect, $this->sut
->resolveInternalEntityQueryPath($resource_type, $external_path));
}