function LinkTest::testGetLinkRelationType
Same name in other branches
- 9 core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php \Drupal\Tests\jsonapi\Unit\JsonApiResource\LinkTest::testGetLinkRelationType()
- 8.9.x core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php \Drupal\Tests\jsonapi\Unit\JsonApiResource\LinkTest::testGetLinkRelationType()
- 10 core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php \Drupal\Tests\jsonapi\Unit\JsonApiResource\LinkTest::testGetLinkRelationType()
@covers ::getLinkRelationType
File
-
core/
modules/ jsonapi/ tests/ src/ Unit/ JsonApiResource/ LinkTest.php, line 125
Class
- LinkTest
- @coversDefaultClass \Drupal\jsonapi\JsonApiResource\Link @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\JsonApiResourceCode
public function testGetLinkRelationType() : void {
$this->mockUrlAssembler();
$link = new Link((new CacheableMetadata())->addCacheTags([
'foo',
]), Url::fromUri('https://jsonapi.org/foo'), 'self');
$this->assertSame('self', $link->getLinkRelationType());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.