testPostIndividual example

// @see \Drupal\media\MediaAccessControlHandler::checkAccess()     return parent::getExpectedUnauthorizedAccessCacheability()
      ->addCacheTags(['media:1']);
  }

  /** * {@inheritdoc} */
  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();
  }

  /** * {@inheritdoc} */
  protected function getExpectedGetRelationshipDocumentData($relationship_field_name, EntityInterface $entity = NULL) {
    $data = parent::getExpectedGetRelationshipDocumentData($relationship_field_name$entity);
    switch ($relationship_field_name) {
      case 'thumbnail':
        $data['meta'] = [
          'alt' => '',
          
Home | Imprint | This part of the site doesn't use cookies.