Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713
This commit is contained in:
parent
c0a0d5a94c
commit
9eae24d844
669 changed files with 3873 additions and 1553 deletions
|
@ -22,7 +22,7 @@ class DedupeEntityTest extends MigrateProcessTestCase {
|
|||
/**
|
||||
* The mock entity query factory.
|
||||
*
|
||||
* @var \Drupal\Core\Entity\Query\QueryFactory|\PHPUnit_Framework_MockObject_MockObject
|
||||
* @var \Drupal\Core\Entity\Query\QueryFactory|\PHPUnit_Framework_MockObject_MockObject
|
||||
*/
|
||||
protected $entityQueryFactory;
|
||||
|
||||
|
|
|
@ -65,6 +65,17 @@ class StaticMapTest extends MigrateProcessTestCase {
|
|||
$this->assertSame($value, 'test');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests when the source is invalid but there's a default value of NULL.
|
||||
*/
|
||||
public function testMapWithInvalidSourceWithANullDefaultValue() {
|
||||
$configuration['map']['foo']['bar'] = 'baz';
|
||||
$configuration['default_value'] = NULL;
|
||||
$this->plugin = new StaticMap($configuration, 'map', []);
|
||||
$value = $this->plugin->transform(array('bar'), $this->migrateExecutable, $this->row, 'destinationproperty');
|
||||
$this->assertNull($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests when the source is invalid and bypass is enabled.
|
||||
*
|
||||
|
|
Reference in a new issue