[SearchEngine] Fix tests

This commit is contained in:
Romain Neutron
2012-10-19 12:14:21 +02:00
parent bb2b529805
commit 6fb94ad482

View File

@@ -42,9 +42,6 @@ class PhraseaEngine implements SearchEngineInterface
{
$this->app = $app;
$this->options = new SearchEngineOptions();
$this->initialize();
$this->checkSession();
}
private function checkSession()
@@ -216,6 +213,9 @@ class PhraseaEngine implements SearchEngineInterface
*/
public function query($query, $offset, $perPage)
{
$this->initialize();
$this->checkSession();
assert(is_int($offset));
assert($offset >= 0);
assert(is_int($perPage));