mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-20 20:34:25 +02:00
Adjust ConfigObjectTest as ConfigObjects are not countable anymore
They are of course still indirectly countable, by using Config::count() or ConfigObject::select()::count().
This commit is contained in:
parent
89029308ef
commit
e228404bf4
@ -60,14 +60,6 @@ class ConfigObjectTest extends BaseTestCase
|
||||
);
|
||||
}
|
||||
|
||||
public function testWhetherConfigObjectsAreCountable()
|
||||
{
|
||||
$config = new ConfigObject(array('a' => 'b', 'c' => array('d' => 'e')));
|
||||
|
||||
$this->assertInstanceOf('Countable', $config, 'ConfigObject objects do not implement interface `Countable\'');
|
||||
$this->assertEquals(2, count($config), 'ConfigObject objects do not count properties and sections correctly');
|
||||
}
|
||||
|
||||
public function testWhetherConfigObjectsAreTraversable()
|
||||
{
|
||||
$config = new ConfigObject(array('a' => 'b', 'c' => 'd'));
|
||||
@ -124,7 +116,7 @@ class ConfigObjectTest extends BaseTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException LogicException
|
||||
* @expectedException \Icinga\Exception\ProgrammingError
|
||||
*/
|
||||
public function testWhetherItIsNotPossibleToAppendProperties()
|
||||
{
|
||||
@ -142,9 +134,6 @@ class ConfigObjectTest extends BaseTestCase
|
||||
$this->assertFalse(isset($config->c), 'ConfigObjects do not allow to unset sections');
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testWhetherConfigObjectsAreCountable
|
||||
*/
|
||||
public function testWhetherOneCanCheckIfAConfigObjectHasAnyPropertiesOrSections()
|
||||
{
|
||||
$config = new ConfigObject();
|
||||
|
Loading…
x
Reference in New Issue
Block a user