]> git.mjollnir.org Git - moodle.git/commitdiff
unit tests: MDL-20393 temporary work-around for this breakage, so other tests can...
authortjhunt <tjhunt>
Wed, 30 Sep 2009 14:16:12 +0000 (14:16 +0000)
committertjhunt <tjhunt>
Wed, 30 Sep 2009 14:16:12 +0000 (14:16 +0000)
lib/simpletest/testrss.php

index e59d0fd198d6097603d8d61688589c1d9ef51f8e..e6609ca8a944b665cea58b332232d31d9cca741e 100644 (file)
@@ -54,6 +54,9 @@ class moodlesimplepie_test extends UnitTestCase {
         $this->assertEqual(count($items), 15);
 
         $this->assertTrue($itemone = $feed->get_item(0));
+        if (!$itemone) {
+               return;
+        }
 
         $this->assertEqual($itemone->get_title(), 'Google HOP contest encourages pre-University students to work on Moodle');
         $this->assertEqual($itemone->get_link(), 'http://moodle.org/mod/forum/discuss.php?d=85629');