Skip to content
Snippets Groups Projects
Commit f4e9100a authored by lbrun's avatar lbrun
Browse files

dev#39820: fix fatal errors

parent e4149475
4 merge requests!1659Master,!1587Master,!1568Dev#39820 bonus story 3 affichage en facette affichage en cases a cocher,!1562Dev#39820 bonus story 3 affichage en facette affichage en cases a cocher
......@@ -257,8 +257,8 @@ class ArticleLoaderGetArticlesByPreferencesTest extends ModelTestCase {
'model' => 'Article']);
$articles = $this->getArticles(['display_order' => 'EventDebut',
'custom_fields' => [5 => 'value1',
12 => 'value2'],
'custom_fields' => [5 => ['value1'],
12 => ['value2']],
'id_categorie' => '4',
'nb_aff' => 3]);
......@@ -435,7 +435,7 @@ class ArticleLoaderWithCustomFieldsTest extends ModelTestCase {
/** @test */
public function articlesByPrefsWithWifiShouldReturnSoireeNet() {
$articles = Class_Article::getArticlesByPreferences(['custom_fields' => [5 => 'wifi']]);
$articles = Class_Article::getArticlesByPreferences(['custom_fields' => [5 => ['wifi']]]);
$this->assertEquals(['Soirée internet'],
(new Storm_Model_Collection($articles))->collect('titre')->getArrayCopy());
......
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