コード例 #1
0
ファイル: Theme.php プロジェクト: kidaa30/magento2-platformsh
 /**
  * @return \Magento\Framework\View\Design\Theme\Customization
  */
 public function getCustomization()
 {
     if ($this->_customization === null) {
         $this->_customization = $this->_customFactory->create(['theme' => $this]);
     }
     return $this->_customization;
 }
コード例 #2
0
 /**
  * @test
  * @return void
  */
 public function testGetCustomization()
 {
     $this->customizationFactory->expects($this->once())->method('create')->willReturn($this->getMockBuilder('Magento\\Framework\\View\\Design\\Theme\\CustomizationInterface')->getMock());
     $this->assertInstanceOf('Magento\\Framework\\View\\Design\\Theme\\CustomizationInterface', $this->_model->getCustomization());
 }