function LinkTest::testLinkMerge
Same name in other branches
- 9 core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php \Drupal\Tests\jsonapi\Unit\JsonApiResource\LinkTest::testLinkMerge()
- 10 core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php \Drupal\Tests\jsonapi\Unit\JsonApiResource\LinkTest::testLinkMerge()
- 11.x core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php \Drupal\Tests\jsonapi\Unit\JsonApiResource\LinkTest::testLinkMerge()
@covers ::merge @dataProvider linkMergeProvider
File
-
core/
modules/ jsonapi/ tests/ src/ Unit/ JsonApiResource/ LinkTest.php, line 92
Class
- LinkTest
- @coversDefaultClass \Drupal\jsonapi\JsonApiResource\Link @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\JsonApiResourceCode
public function testLinkMerge(Link $a, Link $b, $expected) {
if ($expected instanceof Link) {
$this->assertSame($expected->getCacheTags(), Link::merge($a, $b)->getCacheTags());
}
else {
$this->expectExceptionObject($expected);
Link::merge($a, $b);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.