summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Db/FeedTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Db/FeedTest.php')
-rw-r--r--tests/Unit/Db/FeedTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Unit/Db/FeedTest.php b/tests/Unit/Db/FeedTest.php
index 5e4e2a5a5..6305302f1 100644
--- a/tests/Unit/Db/FeedTest.php
+++ b/tests/Unit/Db/FeedTest.php
@@ -104,9 +104,11 @@ class FeedTest extends \PHPUnit_Framework_TestCase
public function testSetXSSUrl()
{
+ $this->setExpectedException(\TypeError::class);
+
$feed = new Feed();
$feed->setUrl('javascript:alert()');
- $this->assertEquals('', $feed->getUrl());
+ $feed->getUrl();
}