From 7596ddc5d2e948c4b30065a39d6721ecd6c72b26 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Thu, 12 Mar 2015 15:03:14 +0100 Subject: [PATCH] Fix tests --- lib/classes/record/preview.php | 2 +- tests/Alchemy/Tests/Phrasea/Application/LightboxTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/classes/record/preview.php b/lib/classes/record/preview.php index 8c835b9417..2e89aa55a7 100644 --- a/lib/classes/record/preview.php +++ b/lib/classes/record/preview.php @@ -212,7 +212,7 @@ class record_preview extends record_adapter case 'RESULT': $perPage = 56; $index = ($this->pos - 3) < 0 ? 0 : ($this->pos - 3); - $results = $this->searchEngine->query($this->query, $index, $perPage, $this->option); + $results = $this->searchEngine->query($this->query, $index, $perPage, $this->options); $this->train = $results->getResults()->toArray(); break; diff --git a/tests/Alchemy/Tests/Phrasea/Application/LightboxTest.php b/tests/Alchemy/Tests/Phrasea/Application/LightboxTest.php index b1c54e4069..c8efac4f5a 100644 --- a/tests/Alchemy/Tests/Phrasea/Application/LightboxTest.php +++ b/tests/Alchemy/Tests/Phrasea/Application/LightboxTest.php @@ -166,7 +166,7 @@ class LightboxTest extends \PhraseanetAuthenticatedWebTestCase $this->set_user_agent(self::USER_AGENT_IPHONE, self::$DI['app']); - $crawler = self::$DI['client']->request('GET', '/lightbox/ajax/LOAD_FEED_ITEM/' . $entry->getId() . '/' . $item->getId() . '/'); + self::$DI['client']->request('GET', '/lightbox/ajax/LOAD_FEED_ITEM/' . $entry->getId() . '/' . $item->getId() . '/'); $this->assertEquals(200, self::$DI['client']->getResponse()->getStatusCode()); $this->assertNotEquals('application/json', self::$DI['client']->getResponse()->headers->get('Content-type')); }