Files
Phraseanet/tests/Alchemy/Tests/Phrasea/TaskManager/Job/SubdefsJobTest.php
2013-12-03 20:02:40 +01:00

24 lines
592 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\TaskManager\Job;
use Alchemy\Phrasea\TaskManager\Job\SubdefsJob;
use Alchemy\Phrasea\TaskManager\Job\JobData;
use Alchemy\Phrasea\Model\Entities\Task;
class SubdefsJobTest extends JobTestCase
{
protected function getJob()
{
return new SubdefsJob(null, null, $this->createTranslatorMock());
}
public function doTestRun()
{
$job = $this->getJob();
$task = new Task();
$task->setSettings($job->getEditor()->getDefaultSettings());
$job->singleRun(new JobData(self::$DI['app'], $task));
}
}