diff --git a/library/Class/Article.php b/library/Class/Article.php index fbfe3e9c385680a1eb9db4d175a6b49cfd8db677..344c0b12ea086435a35892d9d55e5af3586f082f 100644 --- a/library/Class/Article.php +++ b/library/Class/Article.php @@ -486,6 +486,7 @@ class Class_Article extends Storm_Model_Abstract { 'date_creation' => '', 'status' => self::STATUS_DRAFT, 'id_lieu' => 0, + 'id_cat' => 0, 'domaine_ids' => '', 'id_origine' => 0, 'refus_message' => '' diff --git a/tests/application/modules/telephone/controllers/IndexControllerTest.php b/tests/application/modules/telephone/controllers/IndexControllerTest.php index 268825eeb928bfa9541c173cf987c45b2cdc452a..da4c60b311aa6d7d3f5e0a084ec8f2a0506163d9 100644 --- a/tests/application/modules/telephone/controllers/IndexControllerTest.php +++ b/tests/application/modules/telephone/controllers/IndexControllerTest.php @@ -36,10 +36,11 @@ abstract class AbstractIndexControllerTelephoneWithModulesTest extends Telephone Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Article') ->whenCalled('getArticlesByPreferences') - ->answers(array(Class_Article::getLoader() - ->newInstanceWithId(3) - ->setTitre('E.Truffaz') - ->setDescription('A Bonlieu <img src="truffaz.jpg" />.'))); + ->answers([ + Class_Article::newInstanceWithId(3, + ['titre' => 'E.Truffaz', + 'description' => 'A Bonlieu <img src="truffaz.jpg" />.']) + ]); $cfg_accueil = array('modules' => array('1' => array('division' => '1',