public function VersionNegotiatorTest::testInvalidRevisionRel in JSON:API 8.2
@covers \Drupal\jsonapi\Revisions\VersionByRel::getRevision
File
- tests/
src/ Kernel/ Revisions/ VersionNegotiatorTest.php, line 163
Class
- VersionNegotiatorTest
- The test class for version negotiators.
Namespace
Drupal\Tests\jsonapi\Kernel\RevisionsCode
public function testInvalidRevisionRel() {
$this
->setExpectedException(CacheableBadRequestHttpException::class, 'An invalid resource version identifier, `rel:erroneous-revision-name`, was provided.');
$this->versionNegotiator
->getRevision($this->node, 'rel:erroneous-revision-name');
}