mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 03:58:45 +02:00
N°2982 - Speed up SCSS themes compilation during setup - fix infite loop when n signature inside precompiled file
This commit is contained in:
@@ -223,6 +223,13 @@ class ThemeHandlerTest extends ItopTestCase
|
||||
return @mkdir($dir);
|
||||
}
|
||||
|
||||
public function testGetSignatureWithFileWithoutSignature()
|
||||
{
|
||||
$sTmpFile = tempnam(sys_get_temp_dir(), "sig");
|
||||
file_put_contents($sTmpFile,"ffff");
|
||||
$this->assertEquals("", ThemeHandler::GetSignature($sTmpFile));
|
||||
}
|
||||
|
||||
public function testGetSignature()
|
||||
{
|
||||
$sSig = ThemeHandler::GetSignature(APPROOT.'test/application/theme-handler/expected/themes/basque-red/main.css');
|
||||
|
||||
Reference in New Issue
Block a user