summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Db
diff options
context:
space:
mode:
authorDaniel Opitz <git@copynpaste.de>2018-08-30 00:20:16 +0200
committerDaniel Opitz <git@copynpaste.de>2018-09-28 23:24:10 +0200
commit2aabd8fd1f9bdee0060b685e883716287db393c5 (patch)
treee57d2fee6f2b12b51e0426854d17d68c0d11cab9 /tests/Unit/Db
parent159986553bc2db967da2c5fe99949697a46489fe (diff)
fixed feed tests
Diffstat (limited to 'tests/Unit/Db')
-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();
}