Example #1
0
 /**
  * @test
  * @return void
  */
 public function testGetTheme()
 {
     $themeId = 1;
     $this->model->setThemeId($themeId);
     $theme = $this->getMockBuilder('Magento\\Framework\\View\\Design\\ThemeInterface')->getMock();
     $this->themeFactory->expects($this->once())->method('create')->with($themeId, DesignInterface::DEFAULT_AREA)->willReturn($theme);
     $this->assertInstanceOf('Magento\\Framework\\View\\Design\\ThemeInterface', $this->model->getTheme());
 }