You are here

public function MediaTest::testPostIndividual in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/tests/src/Functional/MediaTest.php \Drupal\Tests\jsonapi\Functional\MediaTest::testPostIndividual()
  2. 10 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 360

Class

MediaTest
JSON:API integration test for the "Media" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

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();
}