Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Test code for \Drupal\Tests\feeds\Unit\Feeds\Target\FileTest is commented out. Let's try to repair this test.
Comment | File | Size | Author |
---|---|---|---|
#12 | interdiff-2940280-10-12.txt | 6.06 KB | MegaChriz |
#12 | feeds-file-target-test-2940280-12.patch | 12.81 KB | MegaChriz |
| |||
#10 | feeds-file-target-test-2940280-10.patch | 10.47 KB | MegaChriz |
#6 | interdiff-2940280-4-6.txt | 4.15 KB | MegaChriz |
#6 | feeds-file-target-test-2940280-6.patch | 5.45 KB | MegaChriz |
|
Comments
Comment #2
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedComment #4
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedComment #6
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedNote: test coverage for subtarget 'target_id' is missing.
Comment #8
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedCommitted #6. Leaving issue open for adding coverage for subtarget 'target_id'.
Comment #10
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedThis test tries to cover the following cases:
Ironically, locally this test is failing on an error reported in #2951965: PHP 5.6: Fatal error during import: FormattableMarkup::__toString() must not throw an exception!
Comment #12
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedComment #14
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedCommitted #12 with a few differences: removed
@group test
from methods. Test coverage for providing an empty value for 'target_id' will go into #2772595: When mapping to File or Image fields, empty source for target_id causes Exception and breaks import process., as there are some issues with that.