Skip to content

Commit 957488e

Browse files
committed
test: added test for bookmarks route
1 parent 5691aac commit 957488e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/phpMyFAQ/LinkTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,12 @@ public function testToStringWithEnabledRewriteRules(): void
278278
$this->link->toString()
279279
);
280280

281+
$this->link = new Link('http://faq.example.org/my-test-faq/index.php?action=bookmarks', $this->configuration);
282+
$this->assertEquals(
283+
'http://faq.example.org/my-test-faq/user/bookmarks',
284+
$this->link->toString()
285+
);
286+
281287
$this->link = new Link(
282288
'http://faq.example.org/my-test-faq/index.php?action=faq&cat=1&id=36&artlang=de',
283289
$this->configuration

0 commit comments

Comments
 (0)