Browse Source

Tests were not finding the media use field.

MNPALS-2.x
Rosie Le Faive 1 year ago
parent
commit
e4dc48fca2
  1. 2
      modules/islandora_audio/tests/src/Functional/GenerateAudioDerivativeTest.php
  2. 2
      modules/islandora_image/tests/src/Functional/GenerateImageDerivativeTest.php
  3. 2
      modules/islandora_video/tests/src/Functional/GenerateVideoDerivativeTest.php

2
modules/islandora_audio/tests/src/Functional/GenerateAudioDerivativeTest.php

@ -66,7 +66,7 @@ class GenerateAudioDerivativeTest extends GenerateDerivativeTestBase {
'name[0][value]' => 'Test Media',
'files[field_media_file_0]' => __DIR__ . '/../../fixtures/test_file.txt',
'field_media_of[0][target_id]' => 'Test Node',
'field_tags[0][target_id]' => 'Preservation Master',
'field_media_use[0][target_id]' => 'foo', # change back to $this->preservationMasterTerm->label()
];
$this->drupalGet('media/add/' . $this->testMediaType->id());
$this->submitForm($values, $this->t('Save'));

2
modules/islandora_image/tests/src/Functional/GenerateImageDerivativeTest.php

@ -68,7 +68,7 @@ class GenerateImageDerivativeTest extends GenerateDerivativeTestBase {
'name[0][value]' => 'Test Media',
'files[field_media_file_0]' => __DIR__ . '/../../fixtures/test_file.txt',
'field_media_of[0][target_id]' => 'Test Node',
'field_tags[0][target_id]' => 'Preservation Master',
'field_media_use[0][target_id]' => 'foo', # change back to $this->preservationMasterTerm->label()
];
$this->drupalGet('media/add/' . $this->testMediaType->id());
$this->submitForm($values, $this->t('Save'));

2
modules/islandora_video/tests/src/Functional/GenerateVideoDerivativeTest.php

@ -63,7 +63,7 @@ class GenerateVideoDerivativeTest extends GenerateDerivativeTestBase {
'name[0][value]' => 'Test Media',
'files[field_media_file_0]' => __DIR__ . '/../../fixtures/test_file.txt',
'field_media_of[0][target_id]' => 'Test Node',
'field_tags[0][target_id]' => 'Preservation Master',
'field_media_use[0][target_id]' => 'foo', # change back to $this->preservationMasterTerm->label()
];
$this->drupalGet('media/add/' . $this->testMediaType->id());
$this->submitForm($values, $this->t('Save'));

Loading…
Cancel
Save