summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-08-14 01:57:39 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-08-14 01:57:39 +0200
commit2d4806ad4d2ae40c4ee12f9781218a6369b6c25b (patch)
treed40d9c19507a94ade82323c73bddecf025ad466d /tests
parent07eb992fa5576d77abafde2688ed90f81060d285 (diff)
also allow magnet urls in article links, fix #313
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/db/ItemTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/db/ItemTest.php b/tests/unit/db/ItemTest.php
index 971d808f0..db9153086 100644
--- a/tests/unit/db/ItemTest.php
+++ b/tests/unit/db/ItemTest.php
@@ -126,4 +126,10 @@ class ItemTest extends \PHPUnit_Framework_TestCase {
}
+ public function testSetMagnetUrl() {
+ $item = new Item();
+ $item->setUrl('magnet://link.com');
+ $this->assertEquals('magnet://link.com', $item->getUrl());
+ }
+
} \ No newline at end of file