mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-19 08:48:11 +02:00
IcingaNotificationTest: add store & reload check
This commit is contained in:
parent
e5605afb41
commit
f78c858fe7
@ -15,7 +15,7 @@ class IcingaNotificationTest extends BaseTestCase
|
||||
|
||||
protected $testUserName2 = '___TEST___user2';
|
||||
|
||||
protected $testNotificationName = '___TEST___user';
|
||||
protected $testNotificationName = '___TEST___notification';
|
||||
|
||||
public function testPropertiesCanBeSet()
|
||||
{
|
||||
@ -93,12 +93,24 @@ class IcingaNotificationTest extends BaseTestCase
|
||||
$n->toPlainObject(null, true))
|
||||
;
|
||||
|
||||
$n = IcingaNotification::load($n->object_name, $db);
|
||||
$this->assertEquals(
|
||||
(object) array(
|
||||
'object_name' => $this->testNotificationName,
|
||||
'object_type' => 'object',
|
||||
'users' => array(
|
||||
$user1->object_name,
|
||||
$user2->object_name
|
||||
)
|
||||
),
|
||||
$n->toPlainObject(null, true))
|
||||
;
|
||||
|
||||
$n->delete();
|
||||
|
||||
$user1->delete();
|
||||
$user2->delete();
|
||||
}
|
||||
// echo $n;
|
||||
|
||||
|
||||
public function testLazyUsersCanBeSet()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user