20 $parentTheme = $this->createMock(\
Magento\
Theme\Model\Theme::class);
22 $theme = $this->createPartialMock(\
Magento\
Theme\Model\Theme::class, [
'__wakeup',
'getParentTheme']);
23 $theme->expects($this->once())->method(
'getParentTheme')->will($this->returnValue($parentTheme));
25 $themeCopyService = $this->createPartialMock(\
Magento\
Theme\Model\CopyService::class, [
'copy']);
26 $themeCopyService->expects($this->once())->method(
'copy')->with(
$theme, $parentTheme);
28 $object = new \Magento\Theme\Model\Theme\Domain\Staging(
$theme, $themeCopyService);
29 $this->assertSame($object, $object->updateFromStagingTheme());
testUpdateFromStagingTheme()