Browse Source

Fix tests.

MNPALS-2.x
Rosie Le Faive 1 year ago
parent
commit
8ef277527b
  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', 'name[0][value]' => 'Test Media',
'files[field_media_file_0]' => __DIR__ . '/../../fixtures/test_file.txt', 'files[field_media_file_0]' => __DIR__ . '/../../fixtures/test_file.txt',
'field_media_of[0][target_id]' => 'Test Node', '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->drupalGet('media/add/' . $this->testMediaType->id());
$this->submitForm($values, $this->t('Save')); $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', 'name[0][value]' => 'Test Media',
'files[field_media_file_0]' => __DIR__ . '/../../fixtures/test_file.txt', 'files[field_media_file_0]' => __DIR__ . '/../../fixtures/test_file.txt',
'field_media_of[0][target_id]' => 'Test Node', '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->drupalGet('media/add/' . $this->testMediaType->id());
$this->submitForm($values, $this->t('Save')); $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', 'name[0][value]' => 'Test Media',
'files[field_media_file_0]' => __DIR__ . '/../../fixtures/test_file.txt', 'files[field_media_file_0]' => __DIR__ . '/../../fixtures/test_file.txt',
'field_media_of[0][target_id]' => 'Test Node', '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->drupalGet('media/add/' . $this->testMediaType->id());
$this->submitForm($values, $this->t('Save')); $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: dependencies:
config: config:
- field.field.media.test_media_type.field_media_of - 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 - media.type.test_media_type
module: module:
- path - path
@ -37,7 +37,7 @@ content:
size: 60 size: 60
placeholder: '' placeholder: ''
third_party_settings: { } third_party_settings: { }
field_tags: field_media_use:
type: entity_reference_autocomplete type: entity_reference_autocomplete
weight: 3 weight: 3
region: content region: content

Loading…
Cancel
Save