Unverified Commit fd4711c4 authored by alexpott's avatar alexpott
Browse files

Issue #3061571 follow-up by alexpott: If no Drupal 8 equivalent filter is...

Issue #3061571 follow-up by alexpott: If no Drupal 8 equivalent filter is found during migration, drop transformation-only filters, so that body fields show up
parent 73595839
......@@ -47,12 +47,15 @@ protected function setUp() {
* @param string $invalid_id
* (optional) The invalid plugin ID which is expected to be logged by the
* MigrateExecutable object.
* @param bool $skip_exception
* (optional) Set to TRUE if we expect the filter to be skipped because it
* is a transformation-only filter.
*
* @dataProvider provideFilters
*
* @covers ::transform
*/
public function testTransform($value, $expected_value, $invalid_id = NULL) {
public function testTransform($value, $expected_value, $invalid_id = NULL, $skip_exception = FALSE) {
$configuration = [
'bypass' => TRUE,
'map' => [
......@@ -62,7 +65,7 @@ public function testTransform($value, $expected_value, $invalid_id = NULL) {
];
$plugin = FilterID::create($this->container, $configuration, 'filter_id', []);
if ($expected_value instanceof MigrateSkipProcessException) {
if ($skip_exception) {
$this->executable
->expects($this->exactly(1))
->method('saveMessage')
......@@ -125,7 +128,9 @@ public function provideFilters() {
],
'transformation-only D7 contrib filter' => [
'editor_align',
new MigrateSkipProcessException('The transformation-only filter editor_align was skipped.'),
'',
NULL,
TRUE,
],
'non-transformation-only D7 contrib filter' => [
'bbcode',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment