mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Update unit tests and legacy
This commit is contained in:
@@ -10,6 +10,7 @@ use Alchemy\Phrasea\Model\Entities\FeedEntry;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedItem;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedPublisher;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedToken;
|
||||
use Alchemy\Phrasea\Model\Entities\Task;
|
||||
use Alchemy\Phrasea\Model\Entities\User;
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
@@ -264,6 +265,23 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||
$this->assertTrue(false !== stripos($response->getContent(), 'Sorry, the page you are looking for could not be found'));
|
||||
}
|
||||
|
||||
public function insertTwoTasks()
|
||||
{
|
||||
$task1 = new Task();
|
||||
$task1
|
||||
->setName('task 1')
|
||||
->setJobId('Null');
|
||||
|
||||
$task2 = new Task();
|
||||
$task2
|
||||
->setName('task 2')
|
||||
->setJobId('Null');
|
||||
|
||||
self::$DI['app']['EM']->persist($task1);
|
||||
self::$DI['app']['EM']->persist($task2);
|
||||
self::$DI['app']['EM']->flush();
|
||||
}
|
||||
|
||||
/**
|
||||
* Insert fixture contained in the specified fixtureLoader
|
||||
* into sqlLite test temporary database
|
||||
|
Reference in New Issue
Block a user