public function MessageTest::testRelationships in Drupal 10
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Functional/MessageTest.php \Drupal\Tests\jsonapi\Functional\MessageTest::testRelationships()
- 9 core/modules/jsonapi/tests/src/Functional/MessageTest.php \Drupal\Tests\jsonapi\Functional\MessageTest::testRelationships()
File
- core/
modules/ jsonapi/ tests/ src/ Functional/ MessageTest.php, line 165
Class
- MessageTest
- JSON:API integration test for the "Message" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
public function testRelationships() {
// Contact Message entities are not stored, so they cannot be retrieved.
$this
->expectException(RouteNotFoundException::class);
$this
->expectExceptionMessage('Route "jsonapi.contact_message--camelids.relationship.get" does not exist.');
Url::fromRoute('jsonapi.contact_message--camelids.relationship.get')
->toString(TRUE);
}