Ejemplo n.º 1
0
 /**
  * Load from configuration
  *
  * @dataProvider expectedThemeDataFromConfiguration
  */
 public function testLoadFromConfiguration($area, $vendor, $themeName, $expectedData)
 {
     $this->_model->addConstraint(\Magento\Theme\Model\Theme\Collection::CONSTRAINT_AREA, $area);
     $this->_model->addConstraint(\Magento\Theme\Model\Theme\Collection::CONSTRAINT_VENDOR, $vendor);
     $this->_model->addConstraint(\Magento\Theme\Model\Theme\Collection::CONSTRAINT_THEME_NAME, $themeName);
     $theme = $this->_model->getFirstItem();
     $this->assertEquals($expectedData, $theme->getData());
 }