public function BlockContentTest::testPatchIndividual in JSON:API 8
Tests PATCHing an individual resource, plus edge cases to ensure good DX.
Overrides ResourceTestBase::testPatchIndividual
File
- tests/
src/ Functional/ BlockContentTest.php, line 243
Class
- BlockContentTest
- JSON API integration test for the "BlockContent" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
public function testPatchIndividual() {
// @todo Remove when JSON API requires Drupal 8.5 or newer.
// @see https://www.drupal.org/project/drupal/issues/2835845#comment-12265016
if (floatval(\Drupal::VERSION) < 8.5) {
$this
->markTestSkipped('BlockContent entities were made publishable in 8.5, this is necessary for this test coverage to work.');
}
return parent::testPatchIndividual();
}