Skip to content

Commit

Permalink
bugfix - remove FulltextSearchable from config (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish authored Sep 14, 2018
1 parent a7e0c26 commit d2ab036
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions _config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php

define('SILVERSTRIPE_BASE-SITE_PATH', __DIR__);
define('SILVERSTRIPE_BASE-SITE_DIR', basename(__DIR__));

SilverStripe\ORM\Search\FulltextSearchable::enable();
define('SILVERSTRIPE_BASE-SITE_DIR', basename(__DIR__));
1 change: 1 addition & 0 deletions tests/Page/SearchPageControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class SearchPageControllerTest extends FunctionalTest
*/
public function testSearchForm()
{
$this->markTestSkipped('FulltextSearchable needs to be enabled in project, required to run this test.');
$object = Injector::inst()->create(SearchPageController::class);
$form = $object->SearchForm();
$this->assertInstanceOf(SearchForm::class, $form);
Expand Down

0 comments on commit d2ab036

Please sign in to comment.