Fix factory resource mock structure

refs #3777
This commit is contained in:
Marius Hein 2013-08-20 11:46:42 +02:00 committed by Eric Lippmann
parent 972bc9853e
commit 71603ccd70
2 changed files with 31 additions and 9 deletions

View File

@ -134,7 +134,11 @@ class AuthenticationFormTest extends \Test\Icinga\Web\Form\BaseFormTest
)
);
$form->setResources(
array('db_resource' => 'db_resource')
array(
'db_resource' => array(
'type' => 'db'
)
)
);
$form->setConfiguration($config);
@ -167,7 +171,11 @@ class AuthenticationFormTest extends \Test\Icinga\Web\Form\BaseFormTest
);
$config = $this->getTestConfig();
$form->setResources(
array('db_resource' => 'db_resource')
array(
'db_resource' => array(
'type' => 'db'
)
)
);
$form->setConfiguration($config);
@ -202,8 +210,12 @@ class AuthenticationFormTest extends \Test\Icinga\Web\Form\BaseFormTest
$form->setResources(
array(
'db_resource' => 'db_resource',
'db_resource_2' => 'db_resource_2'
'db_resource' => array(
'type' => 'db'
),
'db_resource_2' => array(
'type' => 'db'
)
)
);
@ -289,8 +301,12 @@ class AuthenticationFormTest extends \Test\Icinga\Web\Form\BaseFormTest
$form->setResources(
array(
'db_resource' => 'db_resource',
'db_resource_2' => 'db_resource_2'
'db_resource' => array(
'type' => 'db'
),
'db_resource_2' => array(
'type' => 'db'
)
)
);

View File

@ -89,7 +89,9 @@ class GeneralFormTest extends \Test\Icinga\Web\Form\BaseFormTest
);
$form->setResources(
array(
'db' => 'db'
'db' => array(
'type' => 'db'
)
)
);
$form->setConfigDir('/tmp');
@ -123,7 +125,9 @@ class GeneralFormTest extends \Test\Icinga\Web\Form\BaseFormTest
$form->setConfigDir('/tmp');
$form->setResources(
array(
'db' => 'db'
'db' => array(
'type' => 'db'
)
)
);
$form->create();
@ -158,7 +162,9 @@ class GeneralFormTest extends \Test\Icinga\Web\Form\BaseFormTest
$form->setConfigDir('/tmp');
$form->setResources(
array(
'db' => 'db'
'db' => array(
'type' => 'db'
)
)
);
$form->create();