Skip to content

Commit

Permalink
Created and added patch for placeimg test issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
joegl committed Oct 4, 2024
1 parent baeaee3 commit fa29408
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@
},
"drupal/webp": {
"https://www.drupal.org/project/webp/issues/3281606": "patches/contrib/webp-mr-33.patch"
},
"su-sws/stanford_migrate": {
"Remove placeimage URL from unit test": "patches/stanford/stanford_migrate-placeimg-test-fix.patch"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions patches/stanford/stanford_migrate-placeimg-test-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/tests/src/Unit/Plugin/migrate/process/StanfordFileImportTest.php b/tests/src/Unit/Plugin/migrate/process/StanfordFileImportTest.php
index c13db27..a116d92 100644
--- a/tests/src/Unit/Plugin/migrate/process/StanfordFileImportTest.php
+++ b/tests/src/Unit/Plugin/migrate/process/StanfordFileImportTest.php
@@ -55,8 +55,6 @@ class StanfordFileImportTest extends UnitTestCase {
$migrate_executable = $this->createMock(MigrateExecutable::class);
$row = $this->createMock(Row::class);
$this->assertNull($plugin->transform('https://identity.stanford.edu/wp-content/uploads/sites/3/2020/07/block-s-right.png', $migrate_executable, $row, 'field_stuff'));
- $this->assertNull($plugin->transform('https://placeimg.com/640/480/any', $migrate_executable, $row, 'field_stuff'));
-

$configuration = ['max_size' => '10MB'];
$definition = [];

0 comments on commit fa29408

Please sign in to comment.