mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 23:43:12 +00:00
Update border manager tests
This commit is contained in:
@@ -48,7 +48,7 @@ class AbstractCheckerTest extends \PhraseanetPHPUnitAbstract
|
|||||||
public function getDataboxesCombinaison()
|
public function getDataboxesCombinaison()
|
||||||
{
|
{
|
||||||
$databox = $collection = null;
|
$databox = $collection = null;
|
||||||
$app = new Application('test');
|
$app = self::$application;
|
||||||
$appbox = $app['phraseanet.appbox'];
|
$appbox = $app['phraseanet.appbox'];
|
||||||
|
|
||||||
foreach ($appbox->get_databoxes() as $db) {
|
foreach ($appbox->get_databoxes() as $db) {
|
||||||
@@ -100,7 +100,7 @@ class AbstractCheckerTest extends \PhraseanetPHPUnitAbstract
|
|||||||
public function getCollectionsCombinaison()
|
public function getCollectionsCombinaison()
|
||||||
{
|
{
|
||||||
$othercollection = $collection = null;
|
$othercollection = $collection = null;
|
||||||
$app = new Application('test');
|
$app = self::$application;
|
||||||
$appbox = $app['phraseanet.appbox'];
|
$appbox = $app['phraseanet.appbox'];
|
||||||
|
|
||||||
foreach ($appbox->get_databoxes() as $db) {
|
foreach ($appbox->get_databoxes() as $db) {
|
||||||
@@ -171,7 +171,7 @@ class AbstractCheckerTest extends \PhraseanetPHPUnitAbstract
|
|||||||
public function getDataboxAndCollection()
|
public function getDataboxAndCollection()
|
||||||
{
|
{
|
||||||
$databox = $collection = null;
|
$databox = $collection = null;
|
||||||
$app = new Application('test');
|
$app = self::$application;
|
||||||
$appbox = $app['phraseanet.appbox'];
|
$appbox = $app['phraseanet.appbox'];
|
||||||
|
|
||||||
foreach ($appbox->get_databoxes() as $db) {
|
foreach ($appbox->get_databoxes() as $db) {
|
||||||
|
@@ -4,9 +4,9 @@ namespace Alchemy\Phrasea\Border;
|
|||||||
|
|
||||||
use Alchemy\Phrasea\Border\Attribute\AttributeInterface;
|
use Alchemy\Phrasea\Border\Attribute\AttributeInterface;
|
||||||
|
|
||||||
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
class ManagerTest extends \PhraseanetPHPUnitAuthenticatedAbstract
|
class ManagerTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var Manager
|
* @var Manager
|
||||||
@@ -59,6 +59,7 @@ class ManagerTest extends \PhraseanetPHPUnitAuthenticatedAbstract
|
|||||||
$this->object = null;
|
$this->object = null;
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Border\Manager::process
|
* @covers Alchemy\Phrasea\Border\Manager::process
|
||||||
* @covers Alchemy\Phrasea\Border\Manager::createLazaret
|
* @covers Alchemy\Phrasea\Border\Manager::createLazaret
|
||||||
@@ -230,6 +231,7 @@ class ManagerTest extends \PhraseanetPHPUnitAuthenticatedAbstract
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Border\Manager::createLazaret
|
* @covers Alchemy\Phrasea\Border\Manager::createLazaret
|
||||||
*/
|
*/
|
||||||
@@ -348,7 +350,6 @@ class ManagerTest extends \PhraseanetPHPUnitAuthenticatedAbstract
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Border\Manager::process
|
* @covers Alchemy\Phrasea\Border\Manager::process
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user