Added a test for mailto: links

This commit is contained in:
Stéphane Goetz
2017-01-23 23:28:56 +01:00
parent 77541b6b09
commit 2b1bfbf52a
2 changed files with 4 additions and 1 deletions

View File

@ -51,6 +51,9 @@ class LinkRendererTest extends \PHPUnit_Framework_TestCase
// /Content/Page
['<a href="../Widgets/Button.html">Link</a>', '[Link](../Widgets/Button.md)', 'Content/Page.html'],
['<a href="../Widgets/Button.html">Link</a>', '[Link](!Widgets/Button)', 'Content/Page.html'],
// Mailto links
['<a href="mailto:me@mydomain.com" class="external">me@mydomain.com</a>', '[me@mydomain.com](mailto:me@mydomain.com)', 'Content/Page.html'],
];
}