kill(); Config::modify(); } FulltextSearchable::enable(); static::$tempDB->build(); static::resetDBSchema(true); } /** * Validate that https://github.com/silverstripe/silverstripe-cms/issues/3212 is fixed */ public function testSearchEngineEscapeAs() { $page = new SiteTree(); $page->Title = "This page provides food as bar"; $page->write(); $page->publishRecursive(); $results = DB::get_conn()->searchEngine([ SiteTree::class, File::class ], "foo* as* bar*", 0, 100, "\"Relevance\" DESC", "", true); $this->assertCount(1, $results); $this->assertEquals( "This page provides food as bar", $results->First()->Title ); } }