diff -u b/core/modules/migrate/src/MigrateExecutable.php b/core/modules/migrate/src/MigrateExecutable.php --- b/core/modules/migrate/src/MigrateExecutable.php +++ b/core/modules/migrate/src/MigrateExecutable.php @@ -259,7 +259,6 @@ $this->migration->getIdMap()->saveIdMapping($row, array(), $e->getStatus(), $this->rollbackAction); $level = $e->getLevel(); $this->saveMessage($e->getMessage(), $level); - $save = $level == MigrationInterface::MESSAGE_INFORMATIONAL || $level == MigrationInterface::MESSAGE_NOTICE; } catch (MigrateSkipRowException $e) { $id_map->saveIdMapping($row, array(), MigrateIdMapInterface::STATUS_IGNORED, $this->rollbackAction); diff -u b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php --- b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php +++ b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php @@ -291,18 +291,18 @@ $row->expects($this->once()) ->method('getSourceIdValues') - ->will($this->returnValue(array('id' => 'test'))); + ->willReturn(array('id' => 'test')); $source->expects($this->once()) ->method('current') - ->will($this->returnValue($row)); + ->willReturn($row); $this->executable->setSource($source); $this->migration->expects($this->once()) ->method('getProcessPlugins') - ->will($this->returnValue(array())) - ->will($this->throwException(new MigrateException($exception_message))); + ->willReturn(array()) + ->willThrowException(new MigrateException($exception_message)); $destination = $this->getMock('Drupal\migrate\Plugin\MigrateDestinationInterface'); $destination->expects($this->never()) @@ -310,7 +310,7 @@ $this->migration->expects($this->once()) ->method('getDestinationPlugin') - ->will($this->returnValue($destination)); + ->willReturn($destination); $this->idMap->expects($this->once()) ->method('saveIdMapping')