testing
This commit is contained in:
@@ -51,7 +51,7 @@ class LocalArticleManager implements ArticleManagerDAO {
|
|||||||
public function addArticle($title, $content, $author, $category, array $tags)
|
public function addArticle($title, $content, $author, $category, array $tags)
|
||||||
{
|
{
|
||||||
$articles = $this->getAllArticles();
|
$articles = $this->getAllArticles();
|
||||||
|
/*
|
||||||
$articles[] = [
|
$articles[] = [
|
||||||
"id" => count($articles)+1,
|
"id" => count($articles)+1,
|
||||||
"title" => $title,
|
"title" => $title,
|
||||||
@@ -61,7 +61,7 @@ class LocalArticleManager implements ArticleManagerDAO {
|
|||||||
"tags" => $tags,
|
"tags" => $tags,
|
||||||
"creationDate" => date("Y-m-d H:i:s")
|
"creationDate" => date("Y-m-d H:i:s")
|
||||||
];
|
];
|
||||||
|
*/
|
||||||
$this->saveArticle($articles[]);
|
$this->saveArticle($articles[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user