Skip to content

Commit

Permalink
MINOR Fixed unittest to use the correct way of setting up Fulltextsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
Stig Lindqvist committed Oct 30, 2011
1 parent b961f99 commit b505458
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tests/search/SearchFormTest.php
Expand Up @@ -12,18 +12,6 @@ class SearchFormTest extends FunctionalTest {


protected $mockController; 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() { function waitUntilIndexingFinished() {
$db = DB::getConn(); $db = DB::getConn();
if (method_exists($db, 'waitUntilIndexingFinished')) DB::getConn()->waitUntilIndexingFinished(); if (method_exists($db, 'waitUntilIndexingFinished')) DB::getConn()->waitUntilIndexingFinished();
Expand All @@ -34,7 +22,7 @@ function setUpOnce() {
if(is_a(DB::getConn(), 'PostgreSQLDatabase')) { if(is_a(DB::getConn(), 'PostgreSQLDatabase')) {
self::kill_temp_db(); self::kill_temp_db();
} }

FulltextSearchable::enable();
parent::setUpOnce(); parent::setUpOnce();
} }


Expand Down

0 comments on commit b505458

Please sign in to comment.