Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #36 from silverstripe-scienceninjas/pull/fix-searc…

…hformtest

MINOR Fixed unittest to use the correct way of setting up Fulltextsearch
  • Loading branch information...
commit 1a32520ae169841d522733856c357c2dd490ff60 2 parents b961f99 + b505458
@sminnee sminnee authored
Showing with 1 addition and 13 deletions.
  1. +1 −13 tests/search/SearchFormTest.php
View
14 tests/search/SearchFormTest.php
@@ -12,18 +12,6 @@ class SearchFormTest extends FunctionalTest {
protected $mockController;
- protected $requiredExtensions = array(
- "SiteTree" => array(
- "FulltextSearchable('Title,MenuTitle,Content,MetaTitle,MetaDescription,MetaKeywords')",
- ),
- "File" => array(
- "FulltextSearchable('Filename,Title,Content')",
- ),
- "ContentController" => array(
- "ContentControllerSearchExtension",
- ),
- );
-
function waitUntilIndexingFinished() {
$db = DB::getConn();
if (method_exists($db, 'waitUntilIndexingFinished')) DB::getConn()->waitUntilIndexingFinished();
@@ -34,7 +22,7 @@ function setUpOnce() {
if(is_a(DB::getConn(), 'PostgreSQLDatabase')) {
self::kill_temp_db();
}
-
+ FulltextSearchable::enable();
parent::setUpOnce();
}
Please sign in to comment.
Something went wrong with that request. Please try again.