mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
[SearchEngine] Fix tests
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user