Browse Source

Fix tests.

pull/957/head
Rosie Le Faive 2 years ago
parent
commit
c49c131ed8
  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
  4. 4
      tests/fixtures/config/core.entity_form_display.media.test_media_type.default.yml

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_media_use[0][target_id]' => 'foo',
'field_media_use[0][target_id]' => $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_media_use[0][target_id]' => 'foo',
'field_media_use[0][target_id]' => $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_media_use[0][target_id]' => 'foo',
'field_media_use[0][target_id]' => $this->preservationMasterTerm->label(),
];
$this->drupalGet('media/add/' . $this->testMediaType->id());
$this->submitForm($values, $this->t('Save'));

4
tests/fixtures/config/core.entity_form_display.media.test_media_type.default.yml vendored

@ -3,7 +3,7 @@ status: true
dependencies:
config:
- field.field.media.test_media_type.field_media_of
- field.field.media.test_media_type.field_tags
- field.field.media.test_media_type.field_media_use
- media.type.test_media_type
module:
- path
@ -37,7 +37,7 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
field_tags:
field_media_use:
type: entity_reference_autocomplete
weight: 3
region: content

Loading…
Cancel
Save