mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
27 lines
655 B
PHP
27 lines
655 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\TaskManager\Log;
|
|
|
|
use Alchemy\Phrasea\TaskManager\Log\TaskLogFile;
|
|
use Alchemy\Phrasea\Model\Entities\Task;
|
|
|
|
class TaskLogFileTest extends LogFileTestCase
|
|
{
|
|
public function testGetters()
|
|
{
|
|
$task = new Task();
|
|
$root = '/path/to/root';
|
|
|
|
$logfile = new TaskLogFile($root, $task);
|
|
$this->assertSame($task, $logfile->getTask());
|
|
$this->assertSame($root, $logfile->getRoot());
|
|
}
|
|
|
|
protected function getLogFile($root)
|
|
{
|
|
$task = self::$DI['app']['EM']->find('Alchemy\Phrasea\Model\Entities\Task', 1);
|
|
|
|
return new TaskLogFile($root, $task);
|
|
}
|
|
}
|