mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
23 lines
720 B
PHP
23 lines
720 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\TaskManager\Job;
|
|
|
|
use Alchemy\Phrasea\TaskManager\Job\JobData;
|
|
|
|
class JobDataTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function testGetters()
|
|
{
|
|
$app = $this->getMockBuilder('Alchemy\Phrasea\Application')
|
|
->disableOriginalConstructor()
|
|
->getMock();
|
|
$task = $this->getMockBuilder('Alchemy\Phrasea\Model\Entities\Task')
|
|
->disableOriginalConstructor()
|
|
->getMock();
|
|
$data = new JobData($app, $task);
|
|
$this->assertInstanceOf('Alchemy\TaskManager\JobDataInterface', $data);
|
|
$this->assertSame($app, $data->getApplication());
|
|
$this->assertSame($task, $data->getTask());
|
|
}
|
|
}
|