[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaTimePeriodRangesTest: store period, not ranges

git at icinga.org git at icinga.org
Thu Feb 25 20:04:16 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: 364b9024688e3dd338535131debf333f49144a32
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=364b9024688e3dd338535131debf333f49144a32

Author: Thomas Gelf <thomas at gelf.net>
Date:   Thu Feb 25 20:04:03 2016 +0100

IcingaTimePeriodRangesTest: store period, not ranges

---

 test/php/library/Director/Objects/IcingaTimePeriodRangesTest.php |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/php/library/Director/Objects/IcingaTimePeriodRangesTest.php b/test/php/library/Director/Objects/IcingaTimePeriodRangesTest.php
index 7a8e4a6..37ed0ff 100644
--- a/test/php/library/Director/Objects/IcingaTimePeriodRangesTest.php
+++ b/test/php/library/Director/Objects/IcingaTimePeriodRangesTest.php
@@ -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;
     }



More information about the icinga-checkins mailing list