Refactor Appbox

This commit is contained in:
Romain Neutron
2012-02-21 16:23:05 +01:00
parent 164a2e396f
commit 48cf1af785
10 changed files with 83 additions and 79 deletions

View File

@@ -44,7 +44,7 @@ class ControllerFieldsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
*/
public function testCheckMulti()
{
$appbox = \appbox::get_instance();
$appbox = \appbox::get_instance(\bootstrap::getCore());
$databox = array_shift($appbox->get_databoxes());
$field = \databox_field::create($databox, "test" . time());
@@ -64,7 +64,7 @@ class ControllerFieldsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
public function testCheckReadOnly()
{
$appbox = \appbox::get_instance();
$appbox = \appbox::get_instance(\bootstrap::getCore());
$databox = array_shift($appbox->get_databoxes());
$field = \databox_field::create($databox, "test" . time());