Commit fd434943 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4405 (If a URL is down, don't give fatal error in antispam automated test)

parent 1c893e17
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -39,11 +39,11 @@ class antispam_test_set extends cms_test_case

    public function testTornevallSubmit()
    {
        $this->assertTrue(is_string(http_download_file('https://www.tornevall.net/'))); // Very rough, at least tells us URL still exists
        $this->assertTrue(is_string(http_download_file('https://www.tornevall.net/', null, false))); // Very rough, at least tells us URL still exists
    }

    public function testStopForumSpamSubmit()
    {
        $this->assertTrue(is_string(http_download_file('http://www.stopforumspam.com/add.php'))); // Very rough, at least tells us URL still exists
        $this->assertTrue(is_string(http_download_file('http://www.stopforumspam.com/add.php', null, false))); // Very rough, at least tells us URL still exists
    }
}