chore(tests): UT for MinifyCss

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2023-12-06 12:44:01 +01:00
parent 6f05a914ef
commit dfec9bbd06
6 changed files with 18 additions and 32 deletions

View File

@@ -35,8 +35,7 @@ final class MinifyFile
{
public function __construct(
private readonly FileHandlerInterface $fileHandler,
private readonly bool $minify,
private readonly bool $insecure
private readonly bool $minify
) {
}
@@ -55,13 +54,6 @@ final class MinifyFile
return HttpRequest::getSecureAppFile($this->fileHandler->getName(), $this->fileHandler->getBase());
}
public function getBase(): string
{
return $this->insecure ? HttpRequest::getSecureAppPath(
$this->fileHandler->getBase()
) : $this->fileHandler->getBase();
}
/**
* @throws FileException
*/