protected function AcquiadamMediaTest::saveNewVersion in Media: Acquia DAM 8
Generates a new version of the asset and resaves media entity.
3 calls to AcquiadamMediaTest::saveNewVersion()
- AcquiadamMediaTest::testAssetFileIsCorrect in tests/
src/ Kernel/ AcquiadamMediaTest.php - Tests if updating multiple revisionable entities.
- AcquiadamMediaTest::testFailedFileSave in tests/
src/ Kernel/ AcquiadamMediaTest.php - Tests that version is only updated when file is saved correctly.
- AcquiadamMediaTest::testNewVersionUpdate in tests/
src/ Kernel/ AcquiadamMediaTest.php - Tests updating media entity when new version is available.
File
- tests/
src/ Kernel/ AcquiadamMediaTest.php, line 180
Class
- AcquiadamMediaTest
- Tests Media entities with Media: Acquia DAM source.
Namespace
Drupal\Tests\media_acquiadam\KernelCode
protected function saveNewVersion() {
$this->asset = $this
->generateNewVersion($this->asset);
$this->testClient
->addAsset($this->asset);
$this
->reSaveMedia();
}