Closed (fixed)
Project:
Migrate Plus
Version:
8.x-5.x-dev
Component:
Tests
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2018 at 12:32 UTC
Updated:
20 May 2022 at 17:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
frank ralf commentedComment #3
frank ralf commentedComment #4
frank ralf commentedThis is a working test file with some sample tests showing how the XML-related PHPUnit assertions work. Save this file to
modules\migrate_plus\tests\src\Unit\data_parser\XmlTest.phpand run it from the root of your Drupal installation withvendor/bin/phpunit -c core modules/migrate_plus/tests/src/Unit/data_parser/XmlTest.php.Next step:
Test real Drupal functions with these assertions.
Comment #5
frank ralf commentedRe-upload with different file extension to allow download.
Comment #6
frank ralf commentedComment #7
frank ralf commentedComment #8
frank ralf commentedThere are still problems with downloading the sample file from here so I put it on GitHub:
https://github.com/nakohdo/Drupal8.migrate_plus/blob/master/tests/XmlTes...
Comment #9
frank ralf commentedComment #10
matroskeenComment #12
matroskeenThe idea is to use
BaseXmlTest.phpfor both plugins and individual test classes for some specific things that are different in both parsers.Comment #14
matroskeenUploading a patch for 8.x-5.x
Comment #16
matroskeenIt's all green, so marking as fixed.