Beispiel #1
0
 /**
  * @return \Magento\Framework\View\Design\Theme\Customization
  */
 public function getCustomization()
 {
     if ($this->_customization === null) {
         $this->_customization = $this->_customFactory->create(['theme' => $this]);
     }
     return $this->_customization;
 }
 /**
  * @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());
 }