summaryrefslogtreecommitdiff
path: root/tests/units/Validator/TaskLinkValidatorTest.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/Validator/TaskLinkValidatorTest.php
parent936376ffe74c583d3cb819e98f53a85137fdf8bc (diff)
Rename all models
Diffstat (limited to 'tests/units/Validator/TaskLinkValidatorTest.php')
-rw-r--r--tests/units/Validator/TaskLinkValidatorTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/units/Validator/TaskLinkValidatorTest.php b/tests/units/Validator/TaskLinkValidatorTest.php
index 5ac4588e..5fc50e3e 100644
--- a/tests/units/Validator/TaskLinkValidatorTest.php
+++ b/tests/units/Validator/TaskLinkValidatorTest.php
@@ -3,18 +3,18 @@
require_once __DIR__.'/../Base.php';
use Kanboard\Validator\TaskLinkValidator;
-use Kanboard\Model\TaskLink;
-use Kanboard\Model\TaskCreation;
-use Kanboard\Model\Project;
+use Kanboard\Model\TaskLinkModel;
+use Kanboard\Model\TaskCreationModel;
+use Kanboard\Model\ProjectModel;
class TaskLinkValidatorTest extends Base
{
public function testValidateCreation()
{
$validator = new TaskLinkValidator($this->container);
- $tl = new TaskLink($this->container);
- $p = new Project($this->container);
- $tc = new TaskCreation($this->container);
+ $tl = new TaskLinkModel($this->container);
+ $p = new ProjectModel($this->container);
+ $tc = new TaskCreationModel($this->container);
$this->assertEquals(1, $p->create(array('name' => 'test')));
$this->assertEquals(1, $tc->create(array('project_id' => 1, 'title' => 'A')));
@@ -46,8 +46,8 @@ class TaskLinkValidatorTest extends Base
public function testValidateModification()
{
$validator = new TaskLinkValidator($this->container);
- $p = new Project($this->container);
- $tc = new TaskCreation($this->container);
+ $p = new ProjectModel($this->container);
+ $tc = new TaskCreationModel($this->container);
$this->assertEquals(1, $p->create(array('name' => 'test')));
$this->assertEquals(1, $tc->create(array('project_id' => 1, 'title' => 'A')));