public function MessageTest::testRevisions in JSON:API 8.2
Tests individual and collection revisions.
Overrides ResourceTestBase::testRevisions
File
- tests/
src/ Functional/ MessageTest.php, line 182
Class
- MessageTest
- JSON:API integration test for the "Message" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
public function testRevisions() {
// Contact Message entities are not stored, so they cannot be retrieved.
$this
->setExpectedException(RouteNotFoundException::class, 'Route "jsonapi.contact_message--camelids.individual" does not exist.');
Url::fromRoute('jsonapi.contact_message--camelids.individual')
->toString(TRUE);
}