/** * @test * @return void * @expectedException \Magento\Framework\Exception\LocalizedException * @expectedExceptionMessage Theme id should be set */ public function testGetThemeException() { $this->themeFactory->expects($this->once())->method('create')->with(null, DesignInterface::DEFAULT_AREA)->willReturn(null); $this->model->getTheme(); }