コード例 #1
0
 /**
  * @test
  * @return void
  */
 public function testGetInheritedThemes()
 {
     $inheritedTheme = $this->getMockBuilder('Magento\\Framework\\View\\Design\\ThemeInterface')->getMock();
     $this->_model->setParentId(10);
     $this->themeFactory->expects($this->once())->method('create')->with(10)->willReturn($inheritedTheme);
     $this->assertContainsOnlyInstancesOf('Magento\\Framework\\View\\Design\\ThemeInterface', $this->_model->getInheritedThemes());
     $this->assertCount(2, $this->_model->getInheritedThemes());
 }