Skip to content

Commit

Permalink
Add test coverage for non-http(s) nav links
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Aug 25, 2023
1 parent 3760941 commit 2e8af35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions application/tests/suite/Omeka/Navigation/Page/UriTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,11 @@ public function testHrefNoParametersHasFragment()
$this->_page->setHref($beforeHref);
$this->assertEquals($afterHref, $this->_page->getHref());
}

public function testInterestingScheme()
{
$href = 'mailto:example@example.com';
$this->_page->setHref($href);
$this->assertEquals($href, $this->_page->getHref());
}
}

0 comments on commit 2e8af35

Please sign in to comment.