Skip to content
Snippets Groups Projects
Commit 9cc619f6 authored by llaffont's avatar llaffont
Browse files

Correction test catalogue cache

parent c0fa9b88
Branches
Tags
No related merge requests found
......@@ -508,17 +508,19 @@ class CatalogueTestGetNoticesByPreferences extends ModelTestCase {
/** @test */
public function getNoticesWithCachePresentShouldNotCallThem() {
$preferences = ['id_catalogue' => 666,
'aleatoire' => 1,
'nb_analyse' => 25,
'nb_notices' => 40];
$this->mock_cache
->whenCalled('load')
->with('00b65147ddbdec5da01bebd5e954b42d')
->with('5e01e70733781681e7e8a9394c3ed28d')
->answers(serialize(array('test')))
->beStrict();
$notices = $this->_catalogue->getNoticesByPreferences(array('id_catalogue' => 666,
'aleatoire' => 1,
'nb_analyse' => 25,
'nb_notices' => 40));
$notices = $this->_catalogue->getNoticesByPreferences($preferences);
$this->assertEquals(array('test'), $notices);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment