mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
Fix tests
This commit is contained in:
@@ -212,7 +212,7 @@ class record_preview extends record_adapter
|
|||||||
case 'RESULT':
|
case 'RESULT':
|
||||||
$perPage = 56;
|
$perPage = 56;
|
||||||
$index = ($this->pos - 3) < 0 ? 0 : ($this->pos - 3);
|
$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();
|
$this->train = $results->getResults()->toArray();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ class LightboxTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
|
|
||||||
$this->set_user_agent(self::USER_AGENT_IPHONE, self::$DI['app']);
|
$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->assertEquals(200, self::$DI['client']->getResponse()->getStatusCode());
|
||||||
$this->assertNotEquals('application/json', self::$DI['client']->getResponse()->headers->get('Content-type'));
|
$this->assertNotEquals('application/json', self::$DI['client']->getResponse()->headers->get('Content-type'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user