mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 18:51:12 +02:00
13 lines
344 B
PHP
13 lines
344 B
PHP
|
<?php
|
||
|
class ContentControllerSearchExtensionTest extends SapphireTest {
|
||
|
|
||
|
function testCustomSearchFormClassesToTest() {
|
||
|
FulltextSearchable::enable('File');
|
||
|
|
||
|
$page = new Page();
|
||
|
$controller = new ContentController($page);
|
||
|
$form = $controller->SearchForm();
|
||
|
|
||
|
$this->assertEquals(array('File'), $form->getClassesToSearch());
|
||
|
}
|
||
|
}
|