From 5de46612bbb6f1e6b07609383ce2a6c74ac64740 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 30 Sep 2009 14:16:12 +0000 Subject: [PATCH] unit tests: MDL-20393 temporary work-around for this breakage, so other tests can be run. --- lib/simpletest/testrss.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/simpletest/testrss.php b/lib/simpletest/testrss.php index e59d0fd198..e6609ca8a9 100644 --- a/lib/simpletest/testrss.php +++ b/lib/simpletest/testrss.php @@ -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'); -- 2.39.5