mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-19 07:53:14 +00:00
[SearchEngine] Fix tests
This commit is contained in:
@@ -42,9 +42,6 @@ class PhraseaEngine implements SearchEngineInterface
|
|||||||
{
|
{
|
||||||
$this->app = $app;
|
$this->app = $app;
|
||||||
$this->options = new SearchEngineOptions();
|
$this->options = new SearchEngineOptions();
|
||||||
|
|
||||||
$this->initialize();
|
|
||||||
$this->checkSession();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function checkSession()
|
private function checkSession()
|
||||||
@@ -216,6 +213,9 @@ class PhraseaEngine implements SearchEngineInterface
|
|||||||
*/
|
*/
|
||||||
public function query($query, $offset, $perPage)
|
public function query($query, $offset, $perPage)
|
||||||
{
|
{
|
||||||
|
$this->initialize();
|
||||||
|
$this->checkSession();
|
||||||
|
|
||||||
assert(is_int($offset));
|
assert(is_int($offset));
|
||||||
assert($offset >= 0);
|
assert($offset >= 0);
|
||||||
assert(is_int($perPage));
|
assert(is_int($perPage));
|
||||||
|
Reference in New Issue
Block a user