Files
Phraseanet/tests/Alchemy/Tests/Phrasea/TaskManager/Job/EmptyCollectionJobTest.php
Benoît Burnichon c6f133abf2 EmptyCollectionJob should accept bas_id setting.
Could not refactor the job as there are static calls preventing mocks.
2016-03-14 12:07:09 +01:00

35 lines
811 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\TaskManager\Job;
use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\TaskManager\Job\AbstractJob;
use Alchemy\Phrasea\TaskManager\Job\EmptyCollectionJob;
use Prophecy\Prophecy\ObjectProphecy;
use Symfony\Component\Translation\TranslatorInterface;
class EmptyCollectionJobTest extends \PHPUnit_Framework_TestCase
{
/**
* @var ObjectProphecy
*/
private $translator;
/**
* @var EmptyCollectionJob
*/
private $sut;
protected function setUp()
{
$this->translator = $this->prophesize(TranslatorInterface::class);
$this->sut = new EmptyCollectionJob($this->translator->reveal());
}
public function testItExtendsAbstractJob()
{
$this->assertInstanceOf(AbstractJob::class, $this->sut);
}
}