IcingaTimePeriodRangesTest: store period, not ranges

This commit is contained in:
Thomas Gelf 2016-02-25 20:04:03 +01:00
parent 66f85a3b52
commit 364b902468
1 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,8 @@ class IcingaTimePeriodRangesTest extends BaseTestCase
'tuesday' => '18:00-24:00',
'wednesday' => '00:00-24:00',
);
$period->ranges()->set($newRanges)->store();
$period->ranges()->set($newRanges);
$period->store();
$period = $this->loadTestPeriod();
$this->assertEquals(
@ -49,7 +50,7 @@ class IcingaTimePeriodRangesTest extends BaseTestCase
);
$ranges->set($testRanges);
$ranges->store();
$object->store();
return $object;
}