Example #1
0
 public function test_save_false_article()
 {
     $article = new Article();
     $article->setLeading("Test...");
     $article->setCreatedBy("Moi");
     try {
         $this->assertEmpty(self::$articleService->saveArticle($article));
     } catch (\Exception $e) {
         $this->assertNotNull($e->getMessage());
     }
 }