diff --git a/src/ThemeInstaller.php b/src/ThemeInstaller.php index 002d166..48b602b 100644 --- a/src/ThemeInstaller.php +++ b/src/ThemeInstaller.php @@ -31,13 +31,13 @@ public function getInstallPath(PackageInterface $package) protected function getBaseInstallationPath() { if (!$this->composer || !$this->composer->getPackage()) { - return 'Themes'; + return 'themes'; } $extra = $this->composer->getPackage()->getExtra(); if (!$extra || empty($extra['theme-dir'])) { - return 'Themes'; + return 'themes'; } return $extra['theme-dir']; diff --git a/tests/ThemeInstallerTest.php b/tests/ThemeInstallerTest.php index 38d787d..a33f7bf 100644 --- a/tests/ThemeInstallerTest.php +++ b/tests/ThemeInstallerTest.php @@ -50,7 +50,7 @@ public function it_supports_vendor_not_included() { $mock = $this->getMockPackage('name'); - $this->assertEquals('Themes/Name', $this->test->getInstallPath($mock)); + $this->assertEquals('themes/Name', $this->test->getInstallPath($mock)); } /** @@ -59,7 +59,7 @@ public function it_supports_vendor_not_included() public function it_returns_themes_folder_by_default() { $mock = $this->getMockPackage('vendor/name-theme'); - $this->assertEquals('Themes/Name', $this->test->getInstallPath($mock)); + $this->assertEquals('themes/Name', $this->test->getInstallPath($mock)); } /** @@ -69,7 +69,7 @@ public function it_can_use_compound_theme_names() { $mock = $this->getMockPackage('vendor/compound-name-theme'); - $this->assertEquals('Themes/CompoundName', $this->test->getInstallPath($mock)); + $this->assertEquals('themes/CompoundName', $this->test->getInstallPath($mock)); } /**