X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate%2Ftests%2Fsrc%2FUnit%2FMigrateExecutableTest.php;fp=web%2Fcore%2Fmodules%2Fmigrate%2Ftests%2Fsrc%2FUnit%2FMigrateExecutableTest.php;h=957da811c86bd0e9ba9dffc7d93cdaa43404b3f2;hp=f199562b6b3d8721adf7a9d60132691360e79885;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php b/web/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php index f199562b6..957da811c 100644 --- a/web/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php +++ b/web/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php @@ -95,9 +95,9 @@ class MigrateExecutableTest extends MigrateTestCase { ->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') @@ -137,9 +137,9 @@ class MigrateExecutableTest extends MigrateTestCase { ->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') @@ -213,9 +213,9 @@ class MigrateExecutableTest extends MigrateTestCase { ->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') @@ -269,9 +269,9 @@ class MigrateExecutableTest extends MigrateTestCase { ->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()); } @@ -319,7 +319,7 @@ class MigrateExecutableTest extends MigrateTestCase { ->method('saveMessage'); $this->idMap->expects($this->never()) - ->method('lookupDestinationId'); + ->method('lookupDestinationIds'); $this->assertSame(MigrationInterface::RESULT_COMPLETED, $this->executable->import()); } @@ -367,9 +367,9 @@ class MigrateExecutableTest extends MigrateTestCase { ->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') @@ -384,7 +384,7 @@ class MigrateExecutableTest extends MigrateTestCase { 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');