public function MediaTest::testPostIndividual in JSON:API 8.2
Same name and namespace in other branches
- 8 tests/src/Functional/MediaTest.php \Drupal\Tests\jsonapi\Functional\MediaTest::testPostIndividual()
Tests POSTing an individual resource, plus edge cases to ensure good DX.
Overrides ResourceTestBase::testPostIndividual
File
- tests/
src/ Functional/ MediaTest.php, line 350
Class
- MediaTest
- JSON:API integration test for the "Media" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
public function testPostIndividual() {
// @todo Mimic \Drupal\Tests\rest\Functional\EntityResource\Media\MediaResourceTestBase::testPost()
// @todo Later, use https://www.drupal.org/project/jsonapi/issues/2958554 to upload files rather than the REST module.
parent::testPostIndividual();
}