/** * @return array */ public function themeDefinitionDataProvider() { $minimalDefinition = new Theme('base'); $fullDefinition = new Theme('oro-black', 'base'); $fullDefinition->setIcon('oro-black-icon.ico'); $fullDefinition->setLogo('oro-black-logo.png'); $fullDefinition->setScreenshot('oro-black-screenshot.png'); $fullDefinition->setLabel('Oro Black Theme'); $fullDefinition->setDirectory('OroBlack'); $fullDefinition->setGroups(['main', 'frontend']); return ['minimal definition given' => ['$name' => 'base', '$definition' => [], '$expectedResult' => $minimalDefinition], 'full definition given' => ['$name' => 'oro-black', '$definition' => ['parent' => 'base', 'groups' => ['main', 'frontend'], 'label' => 'Oro Black Theme', 'screenshot' => 'oro-black-screenshot.png', 'icon' => 'oro-black-icon.ico', 'logo' => 'oro-black-logo.png', 'directory' => 'OroBlack'], '$expectedResult' => $fullDefinition]]; }
public function testIconMethods() { $this->assertNull($this->theme->getIcon()); $this->theme->setIcon('icon.ico'); $this->assertEquals('icon.ico', $this->theme->getIcon()); }