mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
#PHRAS-846 time 1h
fix test
This commit is contained in:
@@ -60,7 +60,9 @@ abstract class LogFileTestCase extends \PhraseanetTestCase
|
||||
$log = $this->getLogFile($this->root);
|
||||
file_put_contents($log->getPath(), 'hello world');
|
||||
$log->clear();
|
||||
$this->assertSame('', $log->getContent());
|
||||
$matches = [];
|
||||
$this->assertEquals(1, preg_match('/^\[(.*)\] File cleared/', $log->getContent(), $matches));
|
||||
$this->assertDateAtom($matches[1]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user