summaryrefslogtreecommitdiff
path: root/tests/units/Model/CommentTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-28 19:48:22 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-28 19:48:22 -0400
commit14713b0ec7ed93ca45578da069ad4e19a7d8addf (patch)
tree79972d53f6091a1ddb17f64a6a05a5523f5d5168 /tests/units/Model/CommentTest.php
parent936376ffe74c583d3cb819e98f53a85137fdf8bc (diff)
Rename all models
Diffstat (limited to 'tests/units/Model/CommentTest.php')
-rw-r--r--tests/units/Model/CommentTest.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/units/Model/CommentTest.php b/tests/units/Model/CommentTest.php
index bb96e4f4..7250ae0b 100644
--- a/tests/units/Model/CommentTest.php
+++ b/tests/units/Model/CommentTest.php
@@ -2,17 +2,17 @@
require_once __DIR__.'/../Base.php';
-use Kanboard\Model\TaskCreation;
-use Kanboard\Model\Project;
-use Kanboard\Model\Comment;
+use Kanboard\Model\TaskCreationModel;
+use Kanboard\Model\ProjectModel;
+use Kanboard\Model\CommentModel;
class CommentTest extends Base
{
public function testCreate()
{
- $c = new Comment($this->container);
- $tc = new TaskCreation($this->container);
- $p = new Project($this->container);
+ $c = new CommentModel($this->container);
+ $tc = new TaskCreationModel($this->container);
+ $p = new ProjectModel($this->container);
$this->assertEquals(1, $p->create(array('name' => 'test1')));
$this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 3, 'owner_id' => 1)));
@@ -38,9 +38,9 @@ class CommentTest extends Base
public function testGetAll()
{
- $c = new Comment($this->container);
- $tc = new TaskCreation($this->container);
- $p = new Project($this->container);
+ $c = new CommentModel($this->container);
+ $tc = new TaskCreationModel($this->container);
+ $p = new ProjectModel($this->container);
$this->assertEquals(1, $p->create(array('name' => 'test1')));
$this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 3, 'owner_id' => 1)));
@@ -61,9 +61,9 @@ class CommentTest extends Base
public function testUpdate()
{
- $c = new Comment($this->container);
- $tc = new TaskCreation($this->container);
- $p = new Project($this->container);
+ $c = new CommentModel($this->container);
+ $tc = new TaskCreationModel($this->container);
+ $p = new ProjectModel($this->container);
$this->assertEquals(1, $p->create(array('name' => 'test1')));
$this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 3, 'owner_id' => 1)));
@@ -77,9 +77,9 @@ class CommentTest extends Base
public function validateRemove()
{
- $c = new Comment($this->container);
- $tc = new TaskCreation($this->container);
- $p = new Project($this->container);
+ $c = new CommentModel($this->container);
+ $tc = new TaskCreationModel($this->container);
+ $p = new ProjectModel($this->container);
$this->assertEquals(1, $p->create(array('name' => 'test1')));
$this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 3, 'owner_id' => 1)));