mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00:00
Revert "Fix: failing unit test (DocumentationViewerTest)"
This reverts commit aacc16c9793c7047cb154d1e553add2eb32a0d3c. This fix was based on using docsviewer with framework 3.1-dev and fails on 3.0.3 stable
This commit is contained in:
parent
aacc16c979
commit
5d51c7b446
@ -110,7 +110,7 @@ class DocumentationViewerTest extends FunctionalTest {
|
|||||||
|
|
||||||
$arr = $pages->toArray();
|
$arr = $pages->toArray();
|
||||||
|
|
||||||
$page = $arr[1];
|
$page = $arr[2];
|
||||||
|
|
||||||
$this->assertEquals('Subfolder', $page->Title);
|
$this->assertEquals('Subfolder', $page->Title);
|
||||||
}
|
}
|
||||||
@ -139,10 +139,10 @@ class DocumentationViewerTest extends FunctionalTest {
|
|||||||
|
|
||||||
// Children
|
// Children
|
||||||
$pagesArr = $pages->toArray();
|
$pagesArr = $pages->toArray();
|
||||||
$child1 = $pagesArr[2];
|
$child1 = $pagesArr[1];
|
||||||
|
|
||||||
$this->assertFalse($child1->Children);
|
$this->assertFalse($child1->Children);
|
||||||
$child2 = $pagesArr[1];
|
$child2 = $pagesArr[2];
|
||||||
|
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
array('subfolder/subpage.md', 'subfolder/subsubfolder/'),
|
array('subfolder/subpage.md', 'subfolder/subsubfolder/'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user