Files
Phraseanet/tests/Alchemy/Tests/Phrasea/TaskManager/Job/SubdefsJobTest.php
2015-06-15 19:30:51 +02:00

28 lines
626 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;
/**
* @group functional
* @group legacy
*/
class SubdefsJobTest extends JobTestCase
{
protected function getJob()
{
return new SubdefsJob($this->createTranslatorMock());
}
public function doTestRun()
{
$job = $this->getJob();
$task = new Task();
$task->setSettings($job->getEditor()->getDefaultSettings());
$job->singleRun(new JobData(self::$DI['app'], $task));
}
}