Пример #1
0
 /**
  * @param string $themePath
  * @param array $expected
  * @dataProvider dataGetterDataProvider
  */
 public function testDataGetter($themePath, $expected)
 {
     $expected = reset($expected);
     $config = new \Magento\Framework\Config\Theme($this->urnResolverMock, file_get_contents(__DIR__ . '/_files/area/' . $themePath . '/theme.xml'));
     $this->assertSame($expected['media'], $config->getMedia());
     $this->assertSame($expected['title'], $config->getThemeTitle());
     $this->assertSame($expected['parent'], $config->getParentTheme());
 }
Пример #2
0
 /**
  * @param string $themePath
  * @param mixed $expected
  * @dataProvider getParentThemeDataProvider
  */
 public function testGetParentTheme($themePath, $expected)
 {
     $config = new \Magento\Framework\Config\Theme(file_get_contents(__DIR__ . "/_files/area/{$themePath}/theme.xml"));
     $this->assertSame($expected, $config->getParentTheme());
 }