mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
fix coding guideline violations
This commit is contained in:
parent
6d209ee203
commit
9ba4189617
@ -35,7 +35,9 @@ class DbBackendFormTest extends BaseTestCase
|
||||
$form = Mockery::mock('Icinga\Forms\Config\UserBackend\DbBackendForm[getView]', array(null));
|
||||
$form->shouldReceive('getView->escape')
|
||||
->with(Mockery::type('string'))
|
||||
->andReturnUsing(function ($s) { return $s; });
|
||||
->andReturnUsing(function ($s) {
|
||||
return $s;
|
||||
});
|
||||
$form->setTokenDisabled();
|
||||
$form->setResources(array('test_db_backend'));
|
||||
$form->populate(array('resource' => 'test_db_backend'));
|
||||
@ -61,7 +63,9 @@ class DbBackendFormTest extends BaseTestCase
|
||||
$form = Mockery::mock('Icinga\Forms\Config\UserBackend\DbBackendForm[getView]', array(null));
|
||||
$form->shouldReceive('getView->escape')
|
||||
->with(Mockery::type('string'))
|
||||
->andReturnUsing(function ($s) { return $s; });
|
||||
->andReturnUsing(function ($s) {
|
||||
return $s;
|
||||
});
|
||||
$form->setTokenDisabled();
|
||||
$form->setResources(array('test_db_backend'));
|
||||
$form->populate(array('resource' => 'test_db_backend'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user