public function MediaTest::testPostIndividual in Drupal 8
Same name and namespace in other branches
- 9 core/modules/jsonapi/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
- core/
modules/ jsonapi/ tests/ src/ Functional/ MediaTest.php, line 349
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/drupal/issues/2958554 to upload files rather than the REST module.
parent::testPostIndividual();
}