mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix tests
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user