function MessageTest::doTestDeleteIndividual
Same name in other branches
- 10 core/modules/jsonapi/tests/src/Functional/MessageTest.php \Drupal\Tests\jsonapi\Functional\MessageTest::doTestDeleteIndividual()
Overrides ResourceTestBase::doTestDeleteIndividual
File
-
core/
modules/ jsonapi/ tests/ src/ Functional/ MessageTest.php, line 145
Class
- MessageTest
- JSON:API integration test for the "Message" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function doTestDeleteIndividual() : void {
// Contact Message entities are not stored, so they cannot be deleted.
$this->expectException(RouteNotFoundException::class);
$this->expectExceptionMessage('Route "jsonapi.contact_message--camelids.individual" does not exist.');
Url::fromRoute('jsonapi.contact_message--camelids.individual')->toString(TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.