prophesize(MigrateProcessInterface::class); $menu_link_manager = $this->prophesize(MenuLinkManagerInterface::class); $menu_link_storage = $this->prophesize(EntityStorageInterface::class); $this->plugin = new MenuLinkParent([], 'map', [], $migration_plugin->reveal(), $menu_link_manager->reveal(), $menu_link_storage->reveal()); } /** * @covers ::transform */ public function testTransformException() { $this->setExpectedException(MigrateSkipRowException::class, "No parent link found for plid '1' in menu 'admin'."); $this->plugin->transform([1, 'admin', NULL], $this->migrateExecutable, $this->row, 'destinationproperty'); } }