mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
24 lines
569 B
PHP
24 lines
569 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\TaskManager\Job;
|
|
|
|
use Alchemy\Phrasea\TaskManager\Job\WriteMetadataJob;
|
|
use Alchemy\Phrasea\TaskManager\Job\JobData;
|
|
use Alchemy\Phrasea\Model\Entities\Task;
|
|
|
|
class WriteMetadataJobTest extends JobTestCase
|
|
{
|
|
protected function getJob()
|
|
{
|
|
return new WriteMetadataJob();
|
|
}
|
|
|
|
public function doTestRun()
|
|
{
|
|
$job = $this->getJob();
|
|
$task = new Task();
|
|
$task->setSettings($job->getEditor()->getDefaultSettings());
|
|
$job->singleRun(new JobData(self::$DI['app'], $task));
|
|
}
|
|
}
|