/** * @covers \Magento\Framework\View\Design\Theme\Customization::getThemeFilesPath * @dataProvider getThemeFilesPathDataProvider * @param string $type * @param string $expectedMethod */ public function testGetThemeFilesPath($type, $expectedMethod) { $this->theme->setData(array('id' => 123, 'type' => $type, 'area' => 'area51', 'theme_path' => 'theme_path')); $this->customizationPath->expects($this->once())->method($expectedMethod)->with($this->theme)->will($this->returnValue('path')); $this->assertEquals('path', $this->model->getThemeFilesPath()); }