mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
2c00a3b20f
Clean up of existing theme, implementation of a new easier to integrate layout.
17 lines
461 B
PHP
17 lines
461 B
PHP
<?php
|
|
|
|
class DocumentationHelperTests extends SapphireTest {
|
|
|
|
public function testGetAllPages() {
|
|
if(!DocumentationSearch::enabled()) {
|
|
return;
|
|
}
|
|
|
|
DocumentationService::set_automatic_registration(false);
|
|
DocumentationService::register('docs-search', DOCSVIEWER_PATH . '/tests/docs-search/');
|
|
|
|
$search = DocumentationSearch::get_all_documentation_pages();
|
|
|
|
$this->assertEquals(7, $search->Count(), '5 pages. 5 pages in entire folder');
|
|
}
|
|
} |