Skip to content

Commit

Permalink
fix: switch default dir in lowercase
Browse files Browse the repository at this point in the history
Be consistant with default laravel folder names
  • Loading branch information
gaetan-hexadog committed Oct 3, 2020
1 parent 06cdf93 commit fa72a13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ThemeInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
6 changes: 3 additions & 3 deletions tests/ThemeInstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand All @@ -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));
}

/**
Expand All @@ -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));
}

/**
Expand Down

0 comments on commit fa72a13

Please sign in to comment.