/** * @test * @group manager */ public function testAddThemeLocationWithBadData() { $this->assertEquals(1, $this->themeManager->getInvalidThemesCount()); $addPath = themes_base_path() . '/../themes-test'; $this->themeManager->addThemeLocation($addPath); $this->assertNotEmpty($this->themeManager->getInvalidThemes()); $this->assertEquals(3, $this->themeManager->getInvalidThemesCount()); }
/** * @test * @group manager * * @expectedException \ThemeManager\Exceptions\NoThemeName */ public function testAddThemeLocationNoThemeNameError() { $this->setUpAlternative(themes_base_path() . '/../themes-alternative', ['name', 'version'], true); $addPath = themes_base_path(); $this->themeManager->addThemeLocation($addPath); }