You are here

protected function AcquiadamMediaTest::createNewMediaRevision in Media: Acquia DAM 8

Re-saves media to generate new revision.

Throws

\Drupal\Core\Entity\EntityStorageException

1 call to AcquiadamMediaTest::createNewMediaRevision()
AcquiadamMediaTest::testAssetFileIsCorrect in tests/src/Kernel/AcquiadamMediaTest.php
Tests if updating multiple revisionable entities.

File

tests/src/Kernel/AcquiadamMediaTest.php, line 171

Class

AcquiadamMediaTest
Tests Media entities with Media: Acquia DAM source.

Namespace

Drupal\Tests\media_acquiadam\Kernel

Code

protected function createNewMediaRevision() {
  $this->media
    ->setName('test');
  $this->media
    ->setNewRevision(TRUE);
  $this->media
    ->save();
}