public function FileTest::testGetIndividual in JSON:API 8
Tests GETting an individual resource, plus edge cases to ensure good DX.
Overrides ResourceTestBase::testGetIndividual
File
- tests/
src/ Functional/ FileTest.php, line 229
Class
- FileTest
- JSON API integration test for the "File" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
public function testGetIndividual() {
// @todo Remove when JSON API requires Drupal 8.5 or newer.
// @see https://www.drupal.org/project/drupal/issues/2866666
if (floatval(\Drupal::VERSION) < 8.5) {
$this
->markTestSkipped('File entities had a dysfunctional access control handler until 8.5, this is necessary for this test coverage to work.');
}
return parent::testGetIndividual();
}