->will($this->returnValue(['id' => 'test']));
$this->idMap->expects($this->once())
- ->method('lookupDestinationId')
+ ->method('lookupDestinationIds')
->with(['id' => 'test'])
- ->will($this->returnValue(['test']));
+ ->will($this->returnValue([['test']]));
$source->expects($this->once())
->method('current')
->will($this->returnValue(['id' => 'test']));
$this->idMap->expects($this->once())
- ->method('lookupDestinationId')
+ ->method('lookupDestinationIds')
->with(['id' => 'test'])
- ->will($this->returnValue(['test']));
+ ->will($this->returnValue([['test']]));
$source->expects($this->once())
->method('current')
->method('saveMessage');
$this->idMap->expects($this->once())
- ->method('lookupDestinationId')
+ ->method('lookupDestinationIds')
->with(['id' => 'test'])
- ->will($this->returnValue(['test']));
+ ->will($this->returnValue([['test']]));
$this->message->expects($this->once())
->method('display')
->method('saveMessage');
$this->idMap->expects($this->once())
- ->method('lookupDestinationId')
+ ->method('lookupDestinationIds')
->with(['id' => 'test'])
- ->will($this->returnValue(['test']));
+ ->will($this->returnValue([['test']]));
$this->assertSame(MigrationInterface::RESULT_COMPLETED, $this->executable->import());
}
->method('saveMessage');
$this->idMap->expects($this->never())
- ->method('lookupDestinationId');
+ ->method('lookupDestinationIds');
$this->assertSame(MigrationInterface::RESULT_COMPLETED, $this->executable->import());
}
->method('saveMessage');
$this->idMap->expects($this->once())
- ->method('lookupDestinationId')
+ ->method('lookupDestinationIds')
->with(['id' => 'test'])
- ->will($this->returnValue(['test']));
+ ->will($this->returnValue([['test']]));
$this->message->expects($this->once())
->method('display')
public function testProcessRow() {
$expected = [
'test' => 'test destination',
- 'test1' => 'test1 destination'
+ 'test1' => 'test1 destination',
];
foreach ($expected as $key => $value) {
$plugins[$key][0] = $this->getMock('Drupal\migrate\Plugin\MigrateProcessInterface');