public function FieldResolverTest::testResolveInternalIncludePath in JSON:API 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/Context/FieldResolverTest.php \Drupal\Tests\jsonapi\Kernel\Context\FieldResolverTest::testResolveInternalIncludePath()
@covers ::resolveInternalEntityQueryPath @dataProvider resolveInternalIncludePathProvider
File
- tests/
src/ Kernel/ Context/ FieldResolverTest.php, line 79
Class
- FieldResolverTest
- @coversDefaultClass \Drupal\jsonapi\Context\FieldResolver @group jsonapi @group legacy
Namespace
Drupal\Tests\jsonapi\Kernel\ContextCode
public function testResolveInternalIncludePath($expect, $external_path, $entity_type_id = 'entity_test_with_bundle', $bundle = 'bundle1') {
$path_parts = explode('.', $external_path);
$resource_type = $this->resourceTypeRepository
->get($entity_type_id, $bundle);
$this
->assertEquals($expect, $this->sut
->resolveInternalIncludePath($resource_type, $path_parts));
}