Skip to content

Commit

Permalink
[BUGFIX] Correct path to temp directory in compile service (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed May 15, 2020
1 parent 1e4d71e commit 245c8f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Service/CompileService.php
Expand Up @@ -51,7 +51,7 @@ public function getCompiledFile($file)
'info' => pathinfo($absoluteFile)
],
'cache' => [
'tempDirectory' => Environment::getPublicPath() . '/' . $this->tempDirectory,
'tempDirectory' => $this->tempDirectory,
'tempDirectoryRelativeToRoot' => $this->tempDirectoryRelativeToRoot,
],
'options' => [
Expand Down
3 changes: 2 additions & 1 deletion Tests/Functional/Parser/ScssParserTest.php
Expand Up @@ -10,6 +10,7 @@
namespace BK2K\BootstrapPackage\Tests\Functional\Parser;

use BK2K\BootstrapPackage\Service\CompileService;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;

Expand All @@ -34,7 +35,7 @@ public function scssParserCanCompileTest($inputFile)
{
$compileService = GeneralUtility::makeInstance(CompileService::class);
$compiledFile = $compileService->getCompiledFile($inputFile);
$this->assertFileExists($compiledFile);
$this->assertFileExists(Environment::getPublicPath() . '/' . $compiledFile);
}

/**
Expand Down

0 comments on commit 245c8f8

Please sign in to comment.