Update border manager tests

This commit is contained in:
Romain Neutron
2012-09-21 16:36:06 +02:00
parent 49588c24f0
commit 3b6a6516f6
2 changed files with 17 additions and 16 deletions

View File

@@ -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) {

View File

@@ -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
*/ */