function FileTest::testIndividual
Tests POST/PATCH/DELETE for an individual resource.
Overrides ResourceTestBase::testIndividual
File
- 
              core/
modules/ jsonapi/ tests/ src/ Functional/ FileTest.php, line 206  
Class
- FileTest
 - JSON:API integration test for the "File" content entity type.
 
Namespace
Drupal\Tests\jsonapi\FunctionalCode
public function testIndividual() : void {
  // @todo https://www.drupal.org/node/1927648
  // Add doTestPostIndividual().
  $this->doTestPatchIndividual();
  $this->entity = $this->resaveEntity($this->entity, $this->account);
  $this->revokePermissions();
  $this->config('jsonapi.settings')
    ->set('read_only', TRUE)
    ->save(TRUE);
  $this->doTestDeleteIndividual();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.