mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00:00
Remove outdated dependancy. Fixes #46
This commit is contained in:
parent
1b0a5c519d
commit
afe229d343
@ -15,7 +15,6 @@
|
|||||||
}],
|
}],
|
||||||
"require": {
|
"require": {
|
||||||
"silverstripe/framework": "~3.1",
|
"silverstripe/framework": "~3.1",
|
||||||
"erusev/parsedown": "dev-fixgreaterthan as ~1.0",
|
|
||||||
"erusev/parsedown-extra": "0.1.0"
|
"erusev/parsedown-extra": "0.1.0"
|
||||||
},
|
},
|
||||||
"repositories": [{
|
"repositories": [{
|
||||||
|
@ -246,26 +246,6 @@ HTML;
|
|||||||
$this->assertEquals("Foo Bar's Test page.", $page->Title);
|
$this->assertEquals("Foo Bar's Test page.", $page->Title);
|
||||||
}
|
}
|
||||||
|
|
||||||
function testParserConvertsSpecialCharacters() {
|
|
||||||
$page = new DocumentationPage();
|
|
||||||
$page->setRelativePath('CodeSnippets.md');
|
|
||||||
$page->setEntity(new DocumentationEntity('parser', '2.4', DOCSVIEWER_PATH . '/tests/docs-parser/'));
|
|
||||||
|
|
||||||
$parsed = DocumentationParser::parse($page, '/'.DOCSVIEWER_DIR .'/tests/docs-parser/');
|
|
||||||
|
|
||||||
// header elements parsed
|
|
||||||
$this->assertContains(
|
|
||||||
'<% control Foo %>',
|
|
||||||
$parsed
|
|
||||||
);
|
|
||||||
|
|
||||||
// paragraphs
|
|
||||||
$this->assertContains(
|
|
||||||
'<% foo %>',
|
|
||||||
$parsed
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function testRewritingRelativeLinksToFiles() {
|
function testRewritingRelativeLinksToFiles() {
|
||||||
$folder = DOCSVIEWER_PATH . '/tests/docs-parser/';
|
$folder = DOCSVIEWER_PATH . '/tests/docs-parser/';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user