Skip to content

Commit

Permalink
Merge branch 'MDL-68658_37' of https://github.com/stronk7/moodle into…
Browse files Browse the repository at this point in the history
… MOODLE_37_STABLE
  • Loading branch information
andrewnicols committed May 25, 2020
2 parents 591c98d + 267c26d commit bff7ea0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tests/rsslib_test.php
Expand Up @@ -118,11 +118,15 @@ public function test_failproxy() {
$oldproxy = $CFG->proxyhost;
$CFG->proxyhost = 'xxxxxxxxxxxxxxx.moodle.org';

$oldproxybypass = $CFG->proxybypass; // Ensure we don't get locally served extests bypassing the proxy.
$CFG->proxybypass = '';

$feed = new moodle_simplepie($this->getExternalTestFileUrl('/rsstest.xml'));

$this->assertNotEmpty($feed->error());
$this->assertEmpty($feed->get_title());
$CFG->proxyhost = $oldproxy;
$CFG->proxybypass = $oldproxybypass;
}

/*
Expand Down

0 comments on commit bff7ea0

Please sign in to comment.