You are here

public function FieldResolverTest::testResolveInternalEntityQueryPath in JSON:API 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/Context/FieldResolverTest.php \Drupal\Tests\jsonapi\Kernel\Context\FieldResolverTest::testResolveInternalEntityQueryPath()

@covers ::resolveInternalEntityQueryPath @dataProvider resolveInternalEntityQueryPathProvider

File

tests/src/Kernel/Context/FieldResolverTest.php, line 168

Class

FieldResolverTest
@coversDefaultClass \Drupal\jsonapi\Context\FieldResolver @group jsonapi @group legacy

Namespace

Drupal\Tests\jsonapi\Kernel\Context

Code

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