You are here

public function MediaTest::testPostIndividual in JSON:API 8

Same name and namespace in other branches
  1. 8.2 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 329

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/jsonapi/issues/2958554 to upload files rather than the REST module.
  parent::testPostIndividual();
}