summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-13 22:19:17 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-13 22:19:17 -0400
commit9c9ed02cd7ebc5dbbc99bcaed6f80988ce8a9677 (patch)
treec58789631d8f729dca8dbbf4108670e567dc25b4 /tests
parent7bfa38d93c7342fc5dc04722e7bc282f165b8cd4 (diff)
Change namespace to add Kanboard as prefix
Diffstat (limited to 'tests')
-rw-r--r--tests/functionals/ApiTest.php2
-rw-r--r--tests/functionals/UserApiTest.php2
-rw-r--r--tests/units/Action/CommentCreationTest.php21
-rw-r--r--tests/units/Action/TaskAssignColorCategoryTest.php19
-rw-r--r--tests/units/Action/TaskAssignColorColumnTest.php13
-rw-r--r--tests/units/Action/TaskAssignColorLinkTest.php15
-rw-r--r--tests/units/Action/TaskAssignColorUserTest.php17
-rw-r--r--tests/units/Action/TaskAssignCurrentUserTest.php21
-rw-r--r--tests/units/Action/TaskAssignSpecificUserTest.php19
-rw-r--r--tests/units/Action/TaskCloseTest.php25
-rw-r--r--tests/units/Action/TaskDuplicateAnotherProjectTest.php21
-rw-r--r--tests/units/Action/TaskEmailTest.php21
-rw-r--r--tests/units/Action/TaskMoveAnotherProjectTest.php21
-rw-r--r--tests/units/Action/TaskMoveColumnCategoryChangeTest.php17
-rw-r--r--tests/units/Action/TaskUpdateStartDateTest.php13
-rw-r--r--tests/units/Auth/LdapTest.php44
-rw-r--r--tests/units/Auth/ReverseProxyTest.php4
-rw-r--r--tests/units/Base.php4
-rw-r--r--tests/units/Core/Cache/MemoryCacheTest.php2
-rw-r--r--tests/units/Core/CsvTest.php2
-rw-r--r--tests/units/Core/FileStorageTest.php6
-rw-r--r--tests/units/Core/LexerTest.php2
-rw-r--r--tests/units/Core/OAuth2Test.php2
-rw-r--r--tests/units/Core/Plugin/HookTest.php2
-rw-r--r--tests/units/Core/Plugin/LoaderTest.php2
-rw-r--r--tests/units/Core/RouterTest.php2
-rw-r--r--tests/units/Core/TemplateTest.php2
-rw-r--r--tests/units/Core/ToolTest.php2
-rw-r--r--tests/units/Formatter/TaskFilterCalendarFormatterTest.php18
-rw-r--r--tests/units/Formatter/TaskFilterGanttFormatterTest.php8
-rw-r--r--tests/units/Formatter/TaskFilterICalendarFormatterTest.php18
-rw-r--r--tests/units/Helper/AppHelperTest.php6
-rw-r--r--tests/units/Helper/AssetHelperTest.php4
-rw-r--r--tests/units/Helper/DatetimeHelperTest.php2
-rw-r--r--tests/units/Helper/FileHelperText.php2
-rw-r--r--tests/units/Helper/HookHelperTest.php6
-rw-r--r--tests/units/Helper/TextHelperTest.php2
-rw-r--r--tests/units/Helper/UrlHelperTest.php4
-rw-r--r--tests/units/Helper/UserHelperTest.php10
-rw-r--r--tests/units/Integration/BitbucketWebhookTest.php12
-rw-r--r--tests/units/Integration/GithubWebhookTest.php12
-rw-r--r--tests/units/Integration/GitlabWebhookTest.php12
-rw-r--r--tests/units/Integration/MailgunTest.php12
-rw-r--r--tests/units/Integration/PostmarkTest.php12
-rw-r--r--tests/units/Integration/SendgridTest.php12
-rw-r--r--tests/units/Integration/SlackWebhookTest.php40
-rw-r--r--tests/units/Model/AclTest.php10
-rw-r--r--tests/units/Model/ActionTest.php24
-rw-r--r--tests/units/Model/AuthenticationTest.php4
-rw-r--r--tests/units/Model/BoardTest.php12
-rw-r--r--tests/units/Model/CategoryTest.php12
-rw-r--r--tests/units/Model/CommentTest.php8
-rw-r--r--tests/units/Model/ConfigTest.php4
-rw-r--r--tests/units/Model/CustomFilterTest.php6
-rw-r--r--tests/units/Model/DateParserTest.php2
-rw-r--r--tests/units/Model/EmailNotificationTest.php28
-rw-r--r--tests/units/Model/FileTest.php12
-rw-r--r--tests/units/Model/LinkTest.php2
-rw-r--r--tests/units/Model/NotificationFilterTest.php8
-rw-r--r--tests/units/Model/NotificationTest.php30
-rw-r--r--tests/units/Model/NotificationTypeTest.php2
-rw-r--r--tests/units/Model/ProjectActivityTest.php10
-rw-r--r--tests/units/Model/ProjectDailyColumnStatsTest.php10
-rw-r--r--tests/units/Model/ProjectDuplicationTest.php20
-rw-r--r--tests/units/Model/ProjectPermissionTest.php6
-rw-r--r--tests/units/Model/ProjectTest.php24
-rw-r--r--tests/units/Model/SubtaskTest.php22
-rw-r--r--tests/units/Model/SubtaskTimeTrackingTest.php16
-rw-r--r--tests/units/Model/SwimlaneTest.php10
-rw-r--r--tests/units/Model/TaskCreationTest.php16
-rw-r--r--tests/units/Model/TaskDuplicationTest.php22
-rw-r--r--tests/units/Model/TaskExportTest.php14
-rw-r--r--tests/units/Model/TaskFilterTest.php18
-rw-r--r--tests/units/Model/TaskFinderTest.php14
-rw-r--r--tests/units/Model/TaskLinkTest.php10
-rw-r--r--tests/units/Model/TaskModificationTest.php20
-rw-r--r--tests/units/Model/TaskMovedDateSubscriberTest.php12
-rw-r--r--tests/units/Model/TaskPermissionTest.php16
-rw-r--r--tests/units/Model/TaskPositionTest.php22
-rw-r--r--tests/units/Model/TaskStatusTest.php18
-rw-r--r--tests/units/Model/TaskTest.php16
-rw-r--r--tests/units/Model/UserSessionTest.php4
-rw-r--r--tests/units/Model/UserTest.php14
-rw-r--r--tests/units/Model/WebNotificationTest.php22
-rw-r--r--tests/units/Model/WebhookTest.php14
85 files changed, 531 insertions, 518 deletions
diff --git a/tests/functionals/ApiTest.php b/tests/functionals/ApiTest.php
index 17741771..7f2db321 100644
--- a/tests/functionals/ApiTest.php
+++ b/tests/functionals/ApiTest.php
@@ -24,7 +24,7 @@ class Api extends PHPUnit_Framework_TestCase
$pdo = null;
}
- $service = new ServiceProvider\DatabaseProvider;
+ $service = new Kanboard\ServiceProvider\DatabaseProvider;
$db = $service->getInstance();
$db->table('settings')->eq('option', 'api_token')->update(array('value' => API_KEY));
diff --git a/tests/functionals/UserApiTest.php b/tests/functionals/UserApiTest.php
index 96df14ff..3abb7b28 100644
--- a/tests/functionals/UserApiTest.php
+++ b/tests/functionals/UserApiTest.php
@@ -26,7 +26,7 @@ class UserApi extends PHPUnit_Framework_TestCase
$pdo = null;
}
- $service = new ServiceProvider\DatabaseProvider;
+ $service = new Kanboard\ServiceProvider\DatabaseProvider;
$db = $service->getInstance();
$db->table('settings')->eq('option', 'api_token')->update(array('value' => API_KEY));
diff --git a/tests/units/Action/CommentCreationTest.php b/tests/units/Action/CommentCreationTest.php
index 6b5fe1ea..8a689309 100644
--- a/tests/units/Action/CommentCreationTest.php
+++ b/tests/units/Action/CommentCreationTest.php
@@ -2,18 +2,19 @@
require_once __DIR__.'/../Base.php';
-use Event\GenericEvent;
-use Model\Task;
-use Model\TaskCreation;
-use Model\Comment;
-use Model\Project;
-use Integration\GithubWebhook;
+use Kanboard\Event\GenericEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\Comment;
+use Kanboard\Model\Project;
+use Kanboard\Integration\GithubWebhook;
+use Kanboard\Action\CommentCreation;
class CommentCreationTest extends Base
{
public function testWithoutRequiredParams()
{
- $action = new Action\CommentCreation($this->container, 1, GithubWebhook::EVENT_ISSUE_COMMENT);
+ $action = new CommentCreation($this->container, 1, GithubWebhook::EVENT_ISSUE_COMMENT);
// We create a task in the first column
$tc = new TaskCreation($this->container);
@@ -38,7 +39,7 @@ class CommentCreationTest extends Base
public function testWithCommitMessage()
{
- $action = new Action\CommentCreation($this->container, 1, GithubWebhook::EVENT_ISSUE_COMMENT);
+ $action = new CommentCreation($this->container, 1, GithubWebhook::EVENT_ISSUE_COMMENT);
// We create a task in the first column
$tc = new TaskCreation($this->container);
@@ -66,7 +67,7 @@ class CommentCreationTest extends Base
public function testWithUser()
{
- $action = new Action\CommentCreation($this->container, 1, GithubWebhook::EVENT_ISSUE_COMMENT);
+ $action = new CommentCreation($this->container, 1, GithubWebhook::EVENT_ISSUE_COMMENT);
// We create a task in the first column
$tc = new TaskCreation($this->container);
@@ -95,7 +96,7 @@ class CommentCreationTest extends Base
public function testWithNoUser()
{
- $action = new Action\CommentCreation($this->container, 1, GithubWebhook::EVENT_ISSUE_COMMENT);
+ $action = new CommentCreation($this->container, 1, GithubWebhook::EVENT_ISSUE_COMMENT);
// We create a task in the first column
$tc = new TaskCreation($this->container);
diff --git a/tests/units/Action/TaskAssignColorCategoryTest.php b/tests/units/Action/TaskAssignColorCategoryTest.php
index 44d23943..1bd3493b 100644
--- a/tests/units/Action/TaskAssignColorCategoryTest.php
+++ b/tests/units/Action/TaskAssignColorCategoryTest.php
@@ -2,18 +2,19 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\Category;
-use Event\GenericEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\Category;
+use Kanboard\Event\GenericEvent;
+use Kanboard\Action\TaskAssignColorCategory;
-class TaskAssignColorCategory extends Base
+class TaskAssignColorCategoryTest extends Base
{
public function testBadProject()
{
- $action = new Action\TaskAssignColorCategory($this->container, 3, Task::EVENT_CREATE_UPDATE);
+ $action = new TaskAssignColorCategory($this->container, 3, Task::EVENT_CREATE_UPDATE);
$event = array(
'project_id' => 2,
@@ -27,7 +28,7 @@ class TaskAssignColorCategory extends Base
public function testExecute()
{
- $action = new Action\TaskAssignColorCategory($this->container, 1, Task::EVENT_CREATE_UPDATE);
+ $action = new TaskAssignColorCategory($this->container, 1, Task::EVENT_CREATE_UPDATE);
$action->setParam('category_id', 1);
$action->setParam('color_id', 'blue');
diff --git a/tests/units/Action/TaskAssignColorColumnTest.php b/tests/units/Action/TaskAssignColorColumnTest.php
index 55767327..c09dc96e 100644
--- a/tests/units/Action/TaskAssignColorColumnTest.php
+++ b/tests/units/Action/TaskAssignColorColumnTest.php
@@ -2,17 +2,18 @@
require_once __DIR__.'/../Base.php';
-use Event\GenericEvent;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
+use Kanboard\Event\GenericEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Action\TaskAssignColorColumn;
class TaskAssignColorColumnTest extends Base
{
public function testColorChange()
{
- $action = new Action\TaskAssignColorColumn($this->container, 1, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskAssignColorColumn($this->container, 1, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 2);
$action->setParam('color_id', 'green');
diff --git a/tests/units/Action/TaskAssignColorLinkTest.php b/tests/units/Action/TaskAssignColorLinkTest.php
index c78af5bb..36a831dd 100644
--- a/tests/units/Action/TaskAssignColorLinkTest.php
+++ b/tests/units/Action/TaskAssignColorLinkTest.php
@@ -2,18 +2,19 @@
require_once __DIR__.'/../Base.php';
-use Event\TaskLinkEvent;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\TaskLink;
-use Model\Project;
+use Kanboard\Event\TaskLinkEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskLink;
+use Kanboard\Model\Project;
+use Kanboard\Action\TaskAssignColorLink;
class TaskAssignColorLinkTest extends Base
{
public function testExecute()
{
- $action = new Action\TaskAssignColorLink($this->container, 1, TaskLink::EVENT_CREATE_UPDATE);
+ $action = new TaskAssignColorLink($this->container, 1, TaskLink::EVENT_CREATE_UPDATE);
$action->setParam('link_id', 2);
$action->setParam('color_id', 'green');
diff --git a/tests/units/Action/TaskAssignColorUserTest.php b/tests/units/Action/TaskAssignColorUserTest.php
index 896b48fc..ea2a8f38 100644
--- a/tests/units/Action/TaskAssignColorUserTest.php
+++ b/tests/units/Action/TaskAssignColorUserTest.php
@@ -2,17 +2,18 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Event\GenericEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Event\GenericEvent;
+use Kanboard\Action\TaskAssignColorUser;
-class TaskAssignColorUser extends Base
+class TaskAssignColorUserTest extends Base
{
public function testBadProject()
{
- $action = new Action\TaskAssignColorUser($this->container, 3, Task::EVENT_CREATE);
+ $action = new TaskAssignColorUser($this->container, 3, Task::EVENT_CREATE);
$event = array(
'project_id' => 2,
@@ -26,7 +27,7 @@ class TaskAssignColorUser extends Base
public function testExecute()
{
- $action = new Action\TaskAssignColorUser($this->container, 1, Task::EVENT_ASSIGNEE_CHANGE);
+ $action = new TaskAssignColorUser($this->container, 1, Task::EVENT_ASSIGNEE_CHANGE);
$action->setParam('user_id', 1);
$action->setParam('color_id', 'blue');
diff --git a/tests/units/Action/TaskAssignCurrentUserTest.php b/tests/units/Action/TaskAssignCurrentUserTest.php
index 9ea816d4..f8946577 100644
--- a/tests/units/Action/TaskAssignCurrentUserTest.php
+++ b/tests/units/Action/TaskAssignCurrentUserTest.php
@@ -2,18 +2,19 @@
require_once __DIR__.'/../Base.php';
-use Event\GenericEvent;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\UserSession;
+use Kanboard\Event\GenericEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\UserSession;
+use Kanboard\Action\TaskAssignCurrentUser;
-class TaskAssignCurrentUser extends Base
+class TaskAssignCurrentUserTest extends Base
{
public function testBadProject()
{
- $action = new Action\TaskAssignCurrentUser($this->container, 3, Task::EVENT_CREATE);
+ $action = new TaskAssignCurrentUser($this->container, 3, Task::EVENT_CREATE);
$action->setParam('column_id', 5);
$event = array(
@@ -28,7 +29,7 @@ class TaskAssignCurrentUser extends Base
public function testBadColumn()
{
- $action = new Action\TaskAssignCurrentUser($this->container, 3, Task::EVENT_CREATE);
+ $action = new TaskAssignCurrentUser($this->container, 3, Task::EVENT_CREATE);
$action->setParam('column_id', 5);
$event = array(
@@ -42,7 +43,7 @@ class TaskAssignCurrentUser extends Base
public function testExecute()
{
- $action = new Action\TaskAssignCurrentUser($this->container, 1, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskAssignCurrentUser($this->container, 1, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 2);
$_SESSION = array(
'user' => array('id' => 5)
diff --git a/tests/units/Action/TaskAssignSpecificUserTest.php b/tests/units/Action/TaskAssignSpecificUserTest.php
index ae8de177..a67335e8 100644
--- a/tests/units/Action/TaskAssignSpecificUserTest.php
+++ b/tests/units/Action/TaskAssignSpecificUserTest.php
@@ -2,17 +2,18 @@
require_once __DIR__.'/../Base.php';
-use Event\GenericEvent;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
+use Kanboard\Event\GenericEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Action\TaskAssignSpecificUser;
-class TaskAssignSpecificUser extends Base
+class TaskAssignSpecificUserTest extends Base
{
public function testBadProject()
{
- $action = new Action\TaskAssignSpecificUser($this->container, 3, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskAssignSpecificUser($this->container, 3, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 5);
$event = array(
@@ -27,7 +28,7 @@ class TaskAssignSpecificUser extends Base
public function testBadColumn()
{
- $action = new Action\TaskAssignSpecificUser($this->container, 3, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskAssignSpecificUser($this->container, 3, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 5);
$event = array(
@@ -41,7 +42,7 @@ class TaskAssignSpecificUser extends Base
public function testExecute()
{
- $action = new Action\TaskAssignSpecificUser($this->container, 1, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskAssignSpecificUser($this->container, 1, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 2);
$action->setParam('user_id', 1);
diff --git a/tests/units/Action/TaskCloseTest.php b/tests/units/Action/TaskCloseTest.php
index 8cee6f13..b2d83194 100644
--- a/tests/units/Action/TaskCloseTest.php
+++ b/tests/units/Action/TaskCloseTest.php
@@ -2,18 +2,19 @@
require_once __DIR__.'/../Base.php';
-use Event\GenericEvent;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Integration\GithubWebhook;
+use Kanboard\Event\GenericEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Integration\GithubWebhook;
+use Kanboard\Action\TaskClose;
class TaskCloseTest extends Base
{
public function testExecutable()
{
- $action = new Action\TaskClose($this->container, 3, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskClose($this->container, 3, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 5);
$event = array(
@@ -24,7 +25,7 @@ class TaskCloseTest extends Base
$this->assertTrue($action->isExecutable($event));
- $action = new Action\TaskClose($this->container, 3, GithubWebhook::EVENT_COMMIT);
+ $action = new TaskClose($this->container, 3, GithubWebhook::EVENT_COMMIT);
$event = array(
'project_id' => 3,
@@ -36,7 +37,7 @@ class TaskCloseTest extends Base
public function testBadEvent()
{
- $action = new Action\TaskClose($this->container, 3, Task::EVENT_UPDATE);
+ $action = new TaskClose($this->container, 3, Task::EVENT_UPDATE);
$action->setParam('column_id', 5);
$event = array(
@@ -51,7 +52,7 @@ class TaskCloseTest extends Base
public function testBadProject()
{
- $action = new Action\TaskClose($this->container, 3, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskClose($this->container, 3, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 5);
$event = array(
@@ -66,7 +67,7 @@ class TaskCloseTest extends Base
public function testBadColumn()
{
- $action = new Action\TaskClose($this->container, 3, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskClose($this->container, 3, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 5);
$event = array(
@@ -80,7 +81,7 @@ class TaskCloseTest extends Base
public function testExecute()
{
- $action = new Action\TaskClose($this->container, 1, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskClose($this->container, 1, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 2);
// We create a task in the first column
diff --git a/tests/units/Action/TaskDuplicateAnotherProjectTest.php b/tests/units/Action/TaskDuplicateAnotherProjectTest.php
index 37eb4052..50cbad01 100644
--- a/tests/units/Action/TaskDuplicateAnotherProjectTest.php
+++ b/tests/units/Action/TaskDuplicateAnotherProjectTest.php
@@ -2,17 +2,18 @@
require_once __DIR__.'/../Base.php';
-use Event\GenericEvent;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-
-class TaskDuplicateAnotherProject extends Base
+use Kanboard\Event\GenericEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Action\TaskDuplicateAnotherProject;
+
+class TaskDuplicateAnotherProjectTest extends Base
{
public function testBadProject()
{
- $action = new Action\TaskDuplicateAnotherProject($this->container, 3, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskDuplicateAnotherProject($this->container, 3, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 5);
$event = array(
@@ -27,7 +28,7 @@ class TaskDuplicateAnotherProject extends Base
public function testBadColumn()
{
- $action = new Action\TaskDuplicateAnotherProject($this->container, 3, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskDuplicateAnotherProject($this->container, 3, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 5);
$event = array(
@@ -41,7 +42,7 @@ class TaskDuplicateAnotherProject extends Base
public function testExecute()
{
- $action = new Action\TaskDuplicateAnotherProject($this->container, 1, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskDuplicateAnotherProject($this->container, 1, Task::EVENT_MOVE_COLUMN);
// We create a task in the first column
$tc = new TaskCreation($this->container);
diff --git a/tests/units/Action/TaskEmailTest.php b/tests/units/Action/TaskEmailTest.php
index d74e1af2..863e5677 100644
--- a/tests/units/Action/TaskEmailTest.php
+++ b/tests/units/Action/TaskEmailTest.php
@@ -2,18 +2,19 @@
require_once __DIR__.'/../Base.php';
-use Event\GenericEvent;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\User;
+use Kanboard\Event\GenericEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\User;
+use Kanboard\Action\TaskEmail;
class TaskEmailTest extends Base
{
public function testNoEmail()
{
- $action = new Action\TaskEmail($this->container, 1, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskEmail($this->container, 1, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 2);
$action->setParam('user_id', 1);
$action->setParam('subject', 'My email subject');
@@ -43,7 +44,7 @@ class TaskEmailTest extends Base
public function testWrongColumn()
{
- $action = new Action\TaskEmail($this->container, 1, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskEmail($this->container, 1, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 2);
$action->setParam('user_id', 1);
$action->setParam('subject', 'My email subject');
@@ -73,7 +74,7 @@ class TaskEmailTest extends Base
public function testMoveColumn()
{
- $action = new Action\TaskEmail($this->container, 1, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskEmail($this->container, 1, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 2);
$action->setParam('user_id', 1);
$action->setParam('subject', 'My email subject');
@@ -111,7 +112,7 @@ class TaskEmailTest extends Base
public function testTaskClose()
{
- $action = new Action\TaskEmail($this->container, 1, Task::EVENT_CLOSE);
+ $action = new TaskEmail($this->container, 1, Task::EVENT_CLOSE);
$action->setParam('column_id', 2);
$action->setParam('user_id', 1);
$action->setParam('subject', 'My email subject');
diff --git a/tests/units/Action/TaskMoveAnotherProjectTest.php b/tests/units/Action/TaskMoveAnotherProjectTest.php
index 78bc6570..93ee3b94 100644
--- a/tests/units/Action/TaskMoveAnotherProjectTest.php
+++ b/tests/units/Action/TaskMoveAnotherProjectTest.php
@@ -2,17 +2,18 @@
require_once __DIR__.'/../Base.php';
-use Event\GenericEvent;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-
-class TaskMoveAnotherProject extends Base
+use Kanboard\Event\GenericEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Action\TaskMoveAnotherProject;
+
+class TaskMoveAnotherProjectTest extends Base
{
public function testBadProject()
{
- $action = new Action\TaskMoveAnotherProject($this->container, 3, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskMoveAnotherProject($this->container, 3, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 5);
$event = array(
@@ -27,7 +28,7 @@ class TaskMoveAnotherProject extends Base
public function testBadColumn()
{
- $action = new Action\TaskMoveAnotherProject($this->container, 3, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskMoveAnotherProject($this->container, 3, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 5);
$event = array(
@@ -41,7 +42,7 @@ class TaskMoveAnotherProject extends Base
public function testExecute()
{
- $action = new Action\TaskMoveAnotherProject($this->container, 1, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskMoveAnotherProject($this->container, 1, Task::EVENT_MOVE_COLUMN);
// We create a task in the first column
$tc = new TaskCreation($this->container);
diff --git a/tests/units/Action/TaskMoveColumnCategoryChangeTest.php b/tests/units/Action/TaskMoveColumnCategoryChangeTest.php
index 4b7dec68..03423776 100644
--- a/tests/units/Action/TaskMoveColumnCategoryChangeTest.php
+++ b/tests/units/Action/TaskMoveColumnCategoryChangeTest.php
@@ -2,19 +2,20 @@
require_once __DIR__.'/../Base.php';
-use Event\GenericEvent;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\Category;
-use Integration\GithubWebhook;
+use Kanboard\Event\GenericEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\Category;
+use Kanboard\Integration\GithubWebhook;
+use Kanboard\Action\TaskMoveColumnCategoryChange;
class TaskMoveColumnCategoryChangeTest extends Base
{
public function testExecute()
{
- $action = new Action\TaskMoveColumnCategoryChange($this->container, 1, Task::EVENT_UPDATE);
+ $action = new TaskMoveColumnCategoryChange($this->container, 1, Task::EVENT_UPDATE);
$action->setParam('dest_column_id', 3);
$action->setParam('category_id', 1);
diff --git a/tests/units/Action/TaskUpdateStartDateTest.php b/tests/units/Action/TaskUpdateStartDateTest.php
index 14f3b5b7..7d558e28 100644
--- a/tests/units/Action/TaskUpdateStartDateTest.php
+++ b/tests/units/Action/TaskUpdateStartDateTest.php
@@ -2,17 +2,18 @@
require_once __DIR__.'/../Base.php';
-use Event\GenericEvent;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
+use Kanboard\Event\GenericEvent;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Action\TaskUpdateStartDate;
class TaskUpdateStartDateTest extends Base
{
public function testExecute()
{
- $action = new Action\TaskUpdateStartDate($this->container, 1, Task::EVENT_MOVE_COLUMN);
+ $action = new TaskUpdateStartDate($this->container, 1, Task::EVENT_MOVE_COLUMN);
$action->setParam('column_id', 2);
// We create a task in the first column
diff --git a/tests/units/Auth/LdapTest.php b/tests/units/Auth/LdapTest.php
index 6edd42fc..19e7d7e2 100644
--- a/tests/units/Auth/LdapTest.php
+++ b/tests/units/Auth/LdapTest.php
@@ -1,6 +1,6 @@
<?php
-namespace Auth;
+namespace Kanboard\Auth;
require_once __DIR__.'/../Base.php';
@@ -67,7 +67,7 @@ class LdapTest extends \Base
public function testConnectSuccess()
{
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('getLdapServer'))
->getMock();
@@ -92,7 +92,7 @@ class LdapTest extends \Base
public function testConnectFailure()
{
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('getLdapServer'))
->getMock();
@@ -117,7 +117,7 @@ class LdapTest extends \Base
public function testBindAnonymous()
{
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('getLdapBindType'))
->getMock();
@@ -143,7 +143,7 @@ class LdapTest extends \Base
public function testBindUser()
{
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('getLdapUsername', 'getLdapBindType'))
->getMock();
@@ -174,7 +174,7 @@ class LdapTest extends \Base
public function testBindProxy()
{
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('getLdapUsername', 'getLdapPassword', 'getLdapBindType'))
->getMock();
@@ -238,7 +238,7 @@ class LdapTest extends \Base
);
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('getLdapUserPattern', 'getLdapBaseDn'))
->getMock();
@@ -308,7 +308,7 @@ class LdapTest extends \Base
);
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('getLdapUserPattern', 'getLdapBaseDn'))
->getMock();
@@ -359,7 +359,7 @@ class LdapTest extends \Base
public function testSearchWithUserNotFound()
{
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('getLdapUserPattern', 'getLdapBaseDn'))
->getMock();
@@ -400,19 +400,19 @@ class LdapTest extends \Base
public function testSuccessfulAuthentication()
{
$this->container['userSession'] = $this
- ->getMockBuilder('\Model\UserSession')
+ ->getMockBuilder('\Kanboard\Model\UserSession')
->setConstructorArgs(array($this->container))
->setMethods(array('refresh'))
->getMock();
$this->container['user'] = $this
- ->getMockBuilder('\Model\User')
+ ->getMockBuilder('\Kanboard\Model\User')
->setConstructorArgs(array($this->container))
->setMethods(array('getByUsername'))
->getMock();
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('findUser'))
->getMock();
@@ -444,19 +444,19 @@ class LdapTest extends \Base
public function testAuthenticationWithExistingLocalUser()
{
$this->container['userSession'] = $this
- ->getMockBuilder('\Model\UserSession')
+ ->getMockBuilder('\Kanboard\Model\UserSession')
->setConstructorArgs(array($this->container))
->setMethods(array('refresh'))
->getMock();
$this->container['user'] = $this
- ->getMockBuilder('\Model\User')
+ ->getMockBuilder('\Kanboard\Model\User')
->setConstructorArgs(array($this->container))
->setMethods(array('getByUsername'))
->getMock();
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('findUser'))
->getMock();
@@ -490,19 +490,19 @@ class LdapTest extends \Base
$ldap_profile = array('username' => 'user', 'name' => 'My user', 'email' => 'user@here');
$this->container['userSession'] = $this
- ->getMockBuilder('\Model\UserSession')
+ ->getMockBuilder('\Kanboard\Model\UserSession')
->setConstructorArgs(array($this->container))
->setMethods(array('refresh'))
->getMock();
$this->container['user'] = $this
- ->getMockBuilder('\Model\User')
+ ->getMockBuilder('\Kanboard\Model\User')
->setConstructorArgs(array($this->container))
->setMethods(array('getByUsername', 'create'))
->getMock();
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('findUser'))
->getMock();
@@ -552,19 +552,19 @@ class LdapTest extends \Base
$ldap_profile = array('username' => 'user', 'name' => 'My user', 'email' => 'user@here');
$this->container['userSession'] = $this
- ->getMockBuilder('\Model\UserSession')
+ ->getMockBuilder('\Kanboard\Model\UserSession')
->setConstructorArgs(array($this->container))
->setMethods(array('refresh'))
->getMock();
$this->container['user'] = $this
- ->getMockBuilder('\Model\User')
+ ->getMockBuilder('\Kanboard\Model\User')
->setConstructorArgs(array($this->container))
->setMethods(array('getByUsername', 'create'))
->getMock();
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('findUser'))
->getMock();
@@ -637,7 +637,7 @@ class LdapTest extends \Base
);
$ldap = $this
- ->getMockBuilder('\Auth\Ldap')
+ ->getMockBuilder('\Kanboard\Auth\Ldap')
->setConstructorArgs(array($this->container))
->setMethods(array('connect', 'getLdapUserPattern', 'getLdapBaseDn', 'getLdapAccountId'))
->getMock();
diff --git a/tests/units/Auth/ReverseProxyTest.php b/tests/units/Auth/ReverseProxyTest.php
index bbab7c0d..6aaa5a67 100644
--- a/tests/units/Auth/ReverseProxyTest.php
+++ b/tests/units/Auth/ReverseProxyTest.php
@@ -2,8 +2,8 @@
require_once __DIR__.'/../Base.php';
-use Auth\ReverseProxy;
-use Model\User;
+use Kanboard\Auth\ReverseProxy;
+use Kanboard\Model\User;
class ReverseProxyTest extends Base
{
diff --git a/tests/units/Base.php b/tests/units/Base.php
index 0a045a09..3b7ffa2a 100644
--- a/tests/units/Base.php
+++ b/tests/units/Base.php
@@ -74,8 +74,8 @@ abstract class Base extends PHPUnit_Framework_TestCase
}
$this->container = new Pimple\Container;
- $this->container->register(new ServiceProvider\DatabaseProvider);
- $this->container->register(new ServiceProvider\ClassProvider);
+ $this->container->register(new Kanboard\ServiceProvider\DatabaseProvider);
+ $this->container->register(new Kanboard\ServiceProvider\ClassProvider);
$this->container['dispatcher'] = new TraceableEventDispatcher(
new EventDispatcher,
diff --git a/tests/units/Core/Cache/MemoryCacheTest.php b/tests/units/Core/Cache/MemoryCacheTest.php
index b28604ed..7a9217ae 100644
--- a/tests/units/Core/Cache/MemoryCacheTest.php
+++ b/tests/units/Core/Cache/MemoryCacheTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../../Base.php';
-use Core\Cache\MemoryCache;
+use Kanboard\Core\Cache\MemoryCache;
class MemoryCacheTest extends Base
{
diff --git a/tests/units/Core/CsvTest.php b/tests/units/Core/CsvTest.php
index 1534584e..71542c20 100644
--- a/tests/units/Core/CsvTest.php
+++ b/tests/units/Core/CsvTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../Base.php';
-use Core\Csv;
+use Kanboard\Core\Csv;
class CsvTest extends Base
{
diff --git a/tests/units/Core/FileStorageTest.php b/tests/units/Core/FileStorageTest.php
index 2475b547..a3ad2448 100644
--- a/tests/units/Core/FileStorageTest.php
+++ b/tests/units/Core/FileStorageTest.php
@@ -1,6 +1,6 @@
<?php
-namespace Core\ObjectStorage;
+namespace Kanboard\Core\ObjectStorage;
require_once __DIR__.'/../Base.php';
@@ -146,7 +146,7 @@ class FileStorageTest extends \Base
}
/**
- * @expectedException \Core\ObjectStorage\ObjectStorageException
+ * @expectedException \Kanboard\Core\ObjectStorage\ObjectStorageException
*/
public function testPutWhenNotAbleToCreateFolder()
{
@@ -196,7 +196,7 @@ class FileStorageTest extends \Base
}
/**
- * @expectedException \Core\ObjectStorage\ObjectStorageException
+ * @expectedException \Kanboard\Core\ObjectStorage\ObjectStorageException
*/
public function testGetWithFileNotFound()
{
diff --git a/tests/units/Core/LexerTest.php b/tests/units/Core/LexerTest.php
index 044655fc..9e14ff6b 100644
--- a/tests/units/Core/LexerTest.php
+++ b/tests/units/Core/LexerTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../Base.php';
-use Core\Lexer;
+use Kanboard\Core\Lexer;
class LexerTest extends Base
{
diff --git a/tests/units/Core/OAuth2Test.php b/tests/units/Core/OAuth2Test.php
index a0e4b43f..d5713608 100644
--- a/tests/units/Core/OAuth2Test.php
+++ b/tests/units/Core/OAuth2Test.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../Base.php';
-use Core\OAuth2;
+use Kanboard\Core\OAuth2;
class OAuth2Test extends Base
{
diff --git a/tests/units/Core/Plugin/HookTest.php b/tests/units/Core/Plugin/HookTest.php
index f8646cbf..8b771697 100644
--- a/tests/units/Core/Plugin/HookTest.php
+++ b/tests/units/Core/Plugin/HookTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../../Base.php';
-use Core\Plugin\Hook;
+use Kanboard\Core\Plugin\Hook;
class HookTest extends Base
{
diff --git a/tests/units/Core/Plugin/LoaderTest.php b/tests/units/Core/Plugin/LoaderTest.php
index 40c23fbb..448723d8 100644
--- a/tests/units/Core/Plugin/LoaderTest.php
+++ b/tests/units/Core/Plugin/LoaderTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../../Base.php';
-use Core\Plugin\Loader;
+use Kanboard\Core\Plugin\Loader;
class LoaderTest extends Base
{
diff --git a/tests/units/Core/RouterTest.php b/tests/units/Core/RouterTest.php
index 56a87662..753e1204 100644
--- a/tests/units/Core/RouterTest.php
+++ b/tests/units/Core/RouterTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../Base.php';
-use Core\Router;
+use Kanboard\Core\Router;
class RouterTest extends Base
{
diff --git a/tests/units/Core/TemplateTest.php b/tests/units/Core/TemplateTest.php
index 9833397b..19c0da1a 100644
--- a/tests/units/Core/TemplateTest.php
+++ b/tests/units/Core/TemplateTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../Base.php';
-use Core\Template;
+use Kanboard\Core\Template;
class TemplateTest extends Base
{
diff --git a/tests/units/Core/ToolTest.php b/tests/units/Core/ToolTest.php
index e714f506..2422d73c 100644
--- a/tests/units/Core/ToolTest.php
+++ b/tests/units/Core/ToolTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../Base.php';
-use Core\Tool;
+use Kanboard\Core\Tool;
class ToolTest extends Base
{
diff --git a/tests/units/Formatter/TaskFilterCalendarFormatterTest.php b/tests/units/Formatter/TaskFilterCalendarFormatterTest.php
index 2ea327ff..d5ff532b 100644
--- a/tests/units/Formatter/TaskFilterCalendarFormatterTest.php
+++ b/tests/units/Formatter/TaskFilterCalendarFormatterTest.php
@@ -2,15 +2,15 @@
require_once __DIR__.'/../Base.php';
-use Formatter\TaskFilterCalendarFormatter;
-use Model\Project;
-use Model\User;
-use Model\TaskCreation;
-use Model\DateParser;
-use Model\Category;
-use Model\Subtask;
-use Model\Config;
-use Model\Swimlane;
+use Kanboard\Formatter\TaskFilterCalendarFormatter;
+use Kanboard\Model\Project;
+use Kanboard\Model\User;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\DateParser;
+use Kanboard\Model\Category;
+use Kanboard\Model\Subtask;
+use Kanboard\Model\Config;
+use Kanboard\Model\Swimlane;
class TaskFilterCalendarFormatterTest extends Base
{
diff --git a/tests/units/Formatter/TaskFilterGanttFormatterTest.php b/tests/units/Formatter/TaskFilterGanttFormatterTest.php
index 9006e164..86815089 100644
--- a/tests/units/Formatter/TaskFilterGanttFormatterTest.php
+++ b/tests/units/Formatter/TaskFilterGanttFormatterTest.php
@@ -2,10 +2,10 @@
require_once __DIR__.'/../Base.php';
-use Formatter\TaskFilterGanttFormatter;
-use Model\Project;
-use Model\TaskCreation;
-use Model\DateParser;
+use Kanboard\Formatter\TaskFilterGanttFormatter;
+use Kanboard\Model\Project;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\DateParser;
class TaskFilterGanttFormatterTest extends Base
{
diff --git a/tests/units/Formatter/TaskFilterICalendarFormatterTest.php b/tests/units/Formatter/TaskFilterICalendarFormatterTest.php
index 17602520..cd5057d9 100644
--- a/tests/units/Formatter/TaskFilterICalendarFormatterTest.php
+++ b/tests/units/Formatter/TaskFilterICalendarFormatterTest.php
@@ -3,15 +3,15 @@
require_once __DIR__.'/../Base.php';
use Eluceo\iCal\Component\Calendar;
-use Formatter\TaskFilterICalendarFormatter;
-use Model\Project;
-use Model\User;
-use Model\TaskCreation;
-use Model\DateParser;
-use Model\Category;
-use Model\Subtask;
-use Model\Config;
-use Model\Swimlane;
+use Kanboard\Formatter\TaskFilterICalendarFormatter;
+use Kanboard\Model\Project;
+use Kanboard\Model\User;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\DateParser;
+use Kanboard\Model\Category;
+use Kanboard\Model\Subtask;
+use Kanboard\Model\Config;
+use Kanboard\Model\Swimlane;
class TaskFilterICalendarFormatterTest extends Base
{
diff --git a/tests/units/Helper/AppHelperTest.php b/tests/units/Helper/AppHelperTest.php
index 54ccd697..cbd8b8ab 100644
--- a/tests/units/Helper/AppHelperTest.php
+++ b/tests/units/Helper/AppHelperTest.php
@@ -2,9 +2,9 @@
require_once __DIR__.'/../Base.php';
-use Core\Session;
-use Helper\App;
-use Model\Config;
+use Kanboard\Core\Session;
+use Kanboard\Helper\App;
+use Kanboard\Model\Config;
class AppHelperTest extends Base
{
diff --git a/tests/units/Helper/AssetHelperTest.php b/tests/units/Helper/AssetHelperTest.php
index ece81d04..7e1edb12 100644
--- a/tests/units/Helper/AssetHelperTest.php
+++ b/tests/units/Helper/AssetHelperTest.php
@@ -2,8 +2,8 @@
require_once __DIR__.'/../Base.php';
-use Helper\Asset;
-use Model\Config;
+use Kanboard\Helper\Asset;
+use Kanboard\Model\Config;
class AssetHelperTest extends Base
{
diff --git a/tests/units/Helper/DatetimeHelperTest.php b/tests/units/Helper/DatetimeHelperTest.php
index d4fc3c3d..8e9c461b 100644
--- a/tests/units/Helper/DatetimeHelperTest.php
+++ b/tests/units/Helper/DatetimeHelperTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../Base.php';
-use Helper\Dt;
+use Kanboard\Helper\Dt;
class DatetimeHelperTest extends Base
{
diff --git a/tests/units/Helper/FileHelperText.php b/tests/units/Helper/FileHelperText.php
index cd5ebffd..a681c890 100644
--- a/tests/units/Helper/FileHelperText.php
+++ b/tests/units/Helper/FileHelperText.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../Base.php';
-use Helper\File;
+use Kanboard\Helper\File;
class FileHelperTest extends Base
{
diff --git a/tests/units/Helper/HookHelperTest.php b/tests/units/Helper/HookHelperTest.php
index 7745c674..aec4a771 100644
--- a/tests/units/Helper/HookHelperTest.php
+++ b/tests/units/Helper/HookHelperTest.php
@@ -2,14 +2,14 @@
require_once __DIR__.'/../Base.php';
-use Helper\Hook;
+use Kanboard\Helper\Hook;
class HookHelperTest extends Base
{
public function testMultipleHooks()
{
$this->container['template'] = $this
- ->getMockBuilder('\Core\Template')
+ ->getMockBuilder('\Kanboard\Core\Template')
->setConstructorArgs(array($this->container))
->setMethods(array('render'))
->getMock();
@@ -41,7 +41,7 @@ class HookHelperTest extends Base
public function testAssetHooks()
{
$this->container['helper']->asset = $this
- ->getMockBuilder('\Helper\Asset')
+ ->getMockBuilder('\Kanboard\Helper\Asset')
->setConstructorArgs(array($this->container))
->setMethods(array('css', 'js'))
->getMock();
diff --git a/tests/units/Helper/TextHelperTest.php b/tests/units/Helper/TextHelperTest.php
index 5495cd1c..30c537a9 100644
--- a/tests/units/Helper/TextHelperTest.php
+++ b/tests/units/Helper/TextHelperTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../Base.php';
-use Helper\Text;
+use Kanboard\Helper\Text;
class TextHelperTest extends Base
{
diff --git a/tests/units/Helper/UrlHelperTest.php b/tests/units/Helper/UrlHelperTest.php
index 5c2477b5..cbacbc73 100644
--- a/tests/units/Helper/UrlHelperTest.php
+++ b/tests/units/Helper/UrlHelperTest.php
@@ -2,8 +2,8 @@
require_once __DIR__.'/../Base.php';
-use Helper\Url;
-use Model\Config;
+use Kanboard\Helper\Url;
+use Kanboard\Model\Config;
class UrlHelperTest extends Base
{
diff --git a/tests/units/Helper/UserHelperTest.php b/tests/units/Helper/UserHelperTest.php
index 24f2b3b2..4cc9fa65 100644
--- a/tests/units/Helper/UserHelperTest.php
+++ b/tests/units/Helper/UserHelperTest.php
@@ -2,11 +2,11 @@
require_once __DIR__.'/../Base.php';
-use Helper\User;
-use Model\Project;
-use Model\ProjectPermission;
-use Model\User as UserModel;
-use Core\Session;
+use Kanboard\Helper\User;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\User as UserModel;
+use Kanboard\Core\Session;
class UserHelperTest extends Base
{
diff --git a/tests/units/Integration/BitbucketWebhookTest.php b/tests/units/Integration/BitbucketWebhookTest.php
index 1902f738..66d65d37 100644
--- a/tests/units/Integration/BitbucketWebhookTest.php
+++ b/tests/units/Integration/BitbucketWebhookTest.php
@@ -2,12 +2,12 @@
require_once __DIR__.'/../Base.php';
-use Integration\BitbucketWebhook;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\ProjectPermission;
-use Model\User;
+use Kanboard\Integration\BitbucketWebhook;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\User;
class BitbucketWebhookTest extends Base
{
diff --git a/tests/units/Integration/GithubWebhookTest.php b/tests/units/Integration/GithubWebhookTest.php
index 3b67ad1c..d64e783e 100644
--- a/tests/units/Integration/GithubWebhookTest.php
+++ b/tests/units/Integration/GithubWebhookTest.php
@@ -2,12 +2,12 @@
require_once __DIR__.'/../Base.php';
-use Integration\GithubWebhook;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\ProjectPermission;
-use Model\User;
+use Kanboard\Integration\GithubWebhook;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\User;
class GithubWebhookTest extends Base
{
diff --git a/tests/units/Integration/GitlabWebhookTest.php b/tests/units/Integration/GitlabWebhookTest.php
index ec073fee..6d37819b 100644
--- a/tests/units/Integration/GitlabWebhookTest.php
+++ b/tests/units/Integration/GitlabWebhookTest.php
@@ -2,12 +2,12 @@
require_once __DIR__.'/../Base.php';
-use Integration\GitlabWebhook;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\ProjectPermission;
-use Model\User;
+use Kanboard\Integration\GitlabWebhook;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\User;
class GitlabWebhookTest extends Base
{
diff --git a/tests/units/Integration/MailgunTest.php b/tests/units/Integration/MailgunTest.php
index 67914b0a..25599f8e 100644
--- a/tests/units/Integration/MailgunTest.php
+++ b/tests/units/Integration/MailgunTest.php
@@ -2,12 +2,12 @@
require_once __DIR__.'/../Base.php';
-use Integration\Mailgun;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\ProjectPermission;
-use Model\User;
+use Kanboard\Integration\Mailgun;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\User;
class MailgunTest extends Base
{
diff --git a/tests/units/Integration/PostmarkTest.php b/tests/units/Integration/PostmarkTest.php
index 9115e24a..fba6dbba 100644
--- a/tests/units/Integration/PostmarkTest.php
+++ b/tests/units/Integration/PostmarkTest.php
@@ -2,12 +2,12 @@
require_once __DIR__.'/../Base.php';
-use Integration\Postmark;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\ProjectPermission;
-use Model\User;
+use Kanboard\Integration\Postmark;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\User;
class PostmarkTest extends Base
{
diff --git a/tests/units/Integration/SendgridTest.php b/tests/units/Integration/SendgridTest.php
index b2352076..85303ce7 100644
--- a/tests/units/Integration/SendgridTest.php
+++ b/tests/units/Integration/SendgridTest.php
@@ -2,12 +2,12 @@
require_once __DIR__.'/../Base.php';
-use Integration\Sendgrid;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\ProjectPermission;
-use Model\User;
+use Kanboard\Integration\Sendgrid;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\User;
class SendgridTest extends Base
{
diff --git a/tests/units/Integration/SlackWebhookTest.php b/tests/units/Integration/SlackWebhookTest.php
index 3b9a3c1b..cf8c8645 100644
--- a/tests/units/Integration/SlackWebhookTest.php
+++ b/tests/units/Integration/SlackWebhookTest.php
@@ -2,9 +2,9 @@
require_once __DIR__.'/../Base.php';
-use Integration\SlackWebhook;
-use Model\Project;
-use Model\Task;
+use Kanboard\Integration\SlackWebhook;
+use Kanboard\Model\Project;
+use Kanboard\Model\Task;
class SlackWebhookTest extends Base
{
@@ -13,7 +13,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -34,7 +34,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -42,7 +42,7 @@ class SlackWebhookTest extends Base
->getMock();
$this->container['projectIntegration'] = $this
- ->getMockBuilder('\Model\ProjectIntegration')
+ ->getMockBuilder('\Kanboard\Model\ProjectIntegration')
->setConstructorArgs(array($this->container))
->setMethods(array(
'hasValue',
@@ -73,7 +73,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -81,7 +81,7 @@ class SlackWebhookTest extends Base
->getMock();
$this->container['projectIntegration'] = $this
- ->getMockBuilder('\Model\ProjectIntegration')
+ ->getMockBuilder('\Kanboard\Model\ProjectIntegration')
->setConstructorArgs(array($this->container))
->setMethods(array(
'hasValue',
@@ -112,7 +112,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -133,7 +133,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -141,7 +141,7 @@ class SlackWebhookTest extends Base
->getMock();
$this->container['projectIntegration'] = $this
- ->getMockBuilder('\Model\ProjectIntegration')
+ ->getMockBuilder('\Kanboard\Model\ProjectIntegration')
->setConstructorArgs(array($this->container))
->setMethods(array(
'getParameters',
@@ -168,7 +168,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -195,7 +195,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -203,7 +203,7 @@ class SlackWebhookTest extends Base
->getMock();
$this->container['projectIntegration'] = $this
- ->getMockBuilder('\Model\ProjectIntegration')
+ ->getMockBuilder('\Kanboard\Model\ProjectIntegration')
->setConstructorArgs(array($this->container))
->setMethods(array(
'getParameters',
@@ -228,7 +228,7 @@ class SlackWebhookTest extends Base
public function testSendPayloadWithChannel()
{
$this->container['httpClient'] = $this
- ->getMockBuilder('\Core\HttpClient')
+ ->getMockBuilder('\Kanboard\Core\HttpClient')
->setConstructorArgs(array($this->container))
->setMethods(array(
'postJson',
@@ -236,7 +236,7 @@ class SlackWebhookTest extends Base
->getMock();
$slack = $this
- ->getMockBuilder('\Integration\SlackWebhook')
+ ->getMockBuilder('\Kanboard\Integration\SlackWebhook')
->setConstructorArgs(array($this->container))
->setMethods(array(
'getChannel',
@@ -274,7 +274,7 @@ class SlackWebhookTest extends Base
public function testSendPayloadWithoutChannel()
{
$this->container['httpClient'] = $this
- ->getMockBuilder('\Core\HttpClient')
+ ->getMockBuilder('\Kanboard\Core\HttpClient')
->setConstructorArgs(array($this->container))
->setMethods(array(
'postJson',
@@ -282,7 +282,7 @@ class SlackWebhookTest extends Base
->getMock();
$slack = $this
- ->getMockBuilder('\Integration\SlackWebhook')
+ ->getMockBuilder('\Kanboard\Integration\SlackWebhook')
->setConstructorArgs(array($this->container))
->setMethods(array(
'getChannel',
@@ -328,7 +328,7 @@ class SlackWebhookTest extends Base
);
$slack = $this
- ->getMockBuilder('\Integration\SlackWebhook')
+ ->getMockBuilder('\Kanboard\Integration\SlackWebhook')
->setConstructorArgs(array($this->container))
->setMethods(array(
'sendPayload',
@@ -357,7 +357,7 @@ class SlackWebhookTest extends Base
$this->assertTrue($this->container['config']->save(array('integration_slack_webhook' => 1)));
$slack = $this
- ->getMockBuilder('\Integration\SlackWebhook')
+ ->getMockBuilder('\Kanboard\Integration\SlackWebhook')
->setConstructorArgs(array($this->container))
->setMethods(array(
'sendMessage',
diff --git a/tests/units/Model/AclTest.php b/tests/units/Model/AclTest.php
index 205e7ee3..28687a5c 100644
--- a/tests/units/Model/AclTest.php
+++ b/tests/units/Model/AclTest.php
@@ -2,11 +2,11 @@
require_once __DIR__.'/../Base.php';
-use Core\Session;
-use Model\Acl;
-use Model\Project;
-use Model\ProjectPermission;
-use Model\User;
+use Kanboard\Core\Session;
+use Kanboard\Model\Acl;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\User;
class AclTest extends Base
{
diff --git a/tests/units/Model/ActionTest.php b/tests/units/Model/ActionTest.php
index 66b2cfe3..30f6b22c 100644
--- a/tests/units/Model/ActionTest.php
+++ b/tests/units/Model/ActionTest.php
@@ -2,18 +2,18 @@
require_once __DIR__.'/../Base.php';
-use Model\Action;
-use Model\Project;
-use Model\Board;
-use Model\Task;
-use Model\TaskPosition;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Category;
-use Model\User;
-use Model\ProjectPermission;
-use Integration\GithubWebhook;
-use Integration\BitbucketWebhook;
+use Kanboard\Model\Action;
+use Kanboard\Model\Project;
+use Kanboard\Model\Board;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskPosition;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Category;
+use Kanboard\Model\User;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Integration\GithubWebhook;
+use Kanboard\Integration\BitbucketWebhook;
class ActionTest extends Base
{
diff --git a/tests/units/Model/AuthenticationTest.php b/tests/units/Model/AuthenticationTest.php
index 7ce81d8b..6b48affe 100644
--- a/tests/units/Model/AuthenticationTest.php
+++ b/tests/units/Model/AuthenticationTest.php
@@ -2,8 +2,8 @@
require_once __DIR__.'/../Base.php';
-use Model\User;
-use Model\Authentication;
+use Kanboard\Model\User;
+use Kanboard\Model\Authentication;
class AuthenticationTest extends Base
{
diff --git a/tests/units/Model/BoardTest.php b/tests/units/Model/BoardTest.php
index 106c6dc9..125b9962 100644
--- a/tests/units/Model/BoardTest.php
+++ b/tests/units/Model/BoardTest.php
@@ -2,12 +2,12 @@
require_once __DIR__.'/../Base.php';
-use Model\Project;
-use Model\Board;
-use Model\Config;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Swimlane;
+use Kanboard\Model\Project;
+use Kanboard\Model\Board;
+use Kanboard\Model\Config;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Swimlane;
class BoardTest extends Base
{
diff --git a/tests/units/Model/CategoryTest.php b/tests/units/Model/CategoryTest.php
index 0467dda4..85d9eaae 100644
--- a/tests/units/Model/CategoryTest.php
+++ b/tests/units/Model/CategoryTest.php
@@ -2,12 +2,12 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\Category;
-use Model\User;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\Category;
+use Kanboard\Model\User;
class CategoryTest extends Base
{
diff --git a/tests/units/Model/CommentTest.php b/tests/units/Model/CommentTest.php
index 5e532b8a..07c39fe3 100644
--- a/tests/units/Model/CommentTest.php
+++ b/tests/units/Model/CommentTest.php
@@ -2,10 +2,10 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\TaskCreation;
-use Model\Project;
-use Model\Comment;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\Project;
+use Kanboard\Model\Comment;
class CommentTest extends Base
{
diff --git a/tests/units/Model/ConfigTest.php b/tests/units/Model/ConfigTest.php
index 832575b8..7670daac 100644
--- a/tests/units/Model/ConfigTest.php
+++ b/tests/units/Model/ConfigTest.php
@@ -2,8 +2,8 @@
require_once __DIR__.'/../Base.php';
-use Model\Config;
-use Core\Session;
+use Kanboard\Model\Config;
+use Kanboard\Core\Session;
class ConfigTest extends Base
{
diff --git a/tests/units/Model/CustomFilterTest.php b/tests/units/Model/CustomFilterTest.php
index 4178aea6..190da899 100644
--- a/tests/units/Model/CustomFilterTest.php
+++ b/tests/units/Model/CustomFilterTest.php
@@ -2,9 +2,9 @@
require_once __DIR__.'/../Base.php';
-use Model\Project;
-use Model\User;
-use Model\CustomFilter;
+use Kanboard\Model\Project;
+use Kanboard\Model\User;
+use Kanboard\Model\CustomFilter;
class CustomFilterTest extends Base
{
diff --git a/tests/units/Model/DateParserTest.php b/tests/units/Model/DateParserTest.php
index 23c31f14..5d8d6ab1 100644
--- a/tests/units/Model/DateParserTest.php
+++ b/tests/units/Model/DateParserTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../Base.php';
-use Model\DateParser;
+use Kanboard\Model\DateParser;
class DateParserTest extends Base
{
diff --git a/tests/units/Model/EmailNotificationTest.php b/tests/units/Model/EmailNotificationTest.php
index 7193f923..afe8d196 100644
--- a/tests/units/Model/EmailNotificationTest.php
+++ b/tests/units/Model/EmailNotificationTest.php
@@ -2,17 +2,17 @@
require_once __DIR__.'/../Base.php';
-use Model\TaskFinder;
-use Model\TaskCreation;
-use Model\Subtask;
-use Model\Comment;
-use Model\User;
-use Model\File;
-use Model\Project;
-use Model\Task;
-use Model\ProjectPermission;
-use Model\EmailNotification;
-use Subscriber\NotificationSubscriber;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\Subtask;
+use Kanboard\Model\Comment;
+use Kanboard\Model\User;
+use Kanboard\Model\File;
+use Kanboard\Model\Project;
+use Kanboard\Model\Task;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\EmailNotification;
+use Kanboard\Subscriber\NotificationSubscriber;
class EmailNotificationTest extends Base
{
@@ -42,7 +42,7 @@ class EmailNotificationTest extends Base
$this->assertNotEmpty($comment);
$this->assertNotEmpty($file);
- foreach (Subscriber\NotificationSubscriber::getSubscribedEvents() as $event => $values) {
+ foreach (NotificationSubscriber::getSubscribedEvents() as $event => $values) {
$this->assertNotEmpty($en->getMailContent($event, array(
'task' => $task,
'comment' => $comment,
@@ -74,7 +74,7 @@ class EmailNotificationTest extends Base
$this->assertTrue($u->update(array('id' => 1, 'email' => 'test@localhost')));
$this->container['emailClient'] = $this
- ->getMockBuilder('\Core\EmailClient')
+ ->getMockBuilder('\Kanboard\Core\EmailClient')
->setConstructorArgs(array($this->container))
->setMethods(array('send'))
->getMock();
@@ -104,7 +104,7 @@ class EmailNotificationTest extends Base
$this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1)));
$this->container['emailClient'] = $this
- ->getMockBuilder('\Core\EmailClient')
+ ->getMockBuilder('\Kanboard\Core\EmailClient')
->setConstructorArgs(array($this->container))
->setMethods(array('send'))
->getMock();
diff --git a/tests/units/Model/FileTest.php b/tests/units/Model/FileTest.php
index d1ad7248..e311cf75 100644
--- a/tests/units/Model/FileTest.php
+++ b/tests/units/Model/FileTest.php
@@ -2,10 +2,10 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\File;
-use Model\TaskCreation;
-use Model\Project;
+use Kanboard\Model\Task;
+use Kanboard\Model\File;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\Project;
class FileTest extends Base
{
@@ -14,7 +14,7 @@ class FileTest extends Base
parent::setUp();
$this->container['objectStorage'] = $this
- ->getMockBuilder('\Core\ObjectStorage\FileStorage')
+ ->getMockBuilder('\Kanboard\Core\ObjectStorage\FileStorage')
->setConstructorArgs(array($this->container))
->setMethods(array('put', 'moveFile', 'remove'))
->getMock();
@@ -104,7 +104,7 @@ class FileTest extends Base
$data = base64_encode('image data');
$f = $this
- ->getMockBuilder('\Model\File')
+ ->getMockBuilder('\Kanboard\Model\File')
->setConstructorArgs(array($this->container))
->setMethods(array('generateThumbnailFromData'))
->getMock();
diff --git a/tests/units/Model/LinkTest.php b/tests/units/Model/LinkTest.php
index 0399f13e..de9d843a 100644
--- a/tests/units/Model/LinkTest.php
+++ b/tests/units/Model/LinkTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../Base.php';
-use Model\Link;
+use Kanboard\Model\Link;
class LinkTest extends Base
{
diff --git a/tests/units/Model/NotificationFilterTest.php b/tests/units/Model/NotificationFilterTest.php
index 73417fb1..2f8cdc8a 100644
--- a/tests/units/Model/NotificationFilterTest.php
+++ b/tests/units/Model/NotificationFilterTest.php
@@ -2,10 +2,10 @@
require_once __DIR__.'/../Base.php';
-use Model\User;
-use Model\Project;
-use Model\NotificationFilter;
-use Model\Notification;
+use Kanboard\Model\User;
+use Kanboard\Model\Project;
+use Kanboard\Model\NotificationFilter;
+use Kanboard\Model\Notification;
class NotificationFilterTest extends Base
{
diff --git a/tests/units/Model/NotificationTest.php b/tests/units/Model/NotificationTest.php
index 88c64744..251ae1b2 100644
--- a/tests/units/Model/NotificationTest.php
+++ b/tests/units/Model/NotificationTest.php
@@ -2,19 +2,19 @@
require_once __DIR__.'/../Base.php';
-use Model\TaskFinder;
-use Model\TaskCreation;
-use Model\Subtask;
-use Model\Comment;
-use Model\User;
-use Model\File;
-use Model\Project;
-use Model\Task;
-use Model\ProjectPermission;
-use Model\Notification;
-use Model\NotificationFilter;
-use Model\NotificationType;
-use Subscriber\NotificationSubscriber;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\Subtask;
+use Kanboard\Model\Comment;
+use Kanboard\Model\User;
+use Kanboard\Model\File;
+use Kanboard\Model\Project;
+use Kanboard\Model\Task;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\Notification;
+use Kanboard\Model\NotificationFilter;
+use Kanboard\Model\NotificationType;
+use Kanboard\Subscriber\NotificationSubscriber;
class NotificationTest extends Base
{
@@ -173,13 +173,13 @@ class NotificationTest extends Base
));
$this->container['emailNotification'] = $this
- ->getMockBuilder('\Model\EmailNotification')
+ ->getMockBuilder('\Kanboard\Model\EmailNotification')
->setConstructorArgs(array($this->container))
->setMethods(array('send'))
->getMock();
$this->container['webNotification'] = $this
- ->getMockBuilder('\Model\WebNotification')
+ ->getMockBuilder('\Kanboard\Model\WebNotification')
->setConstructorArgs(array($this->container))
->setMethods(array('send'))
->getMock();
diff --git a/tests/units/Model/NotificationTypeTest.php b/tests/units/Model/NotificationTypeTest.php
index 1a3d0197..bf3c78a0 100644
--- a/tests/units/Model/NotificationTypeTest.php
+++ b/tests/units/Model/NotificationTypeTest.php
@@ -2,7 +2,7 @@
require_once __DIR__.'/../Base.php';
-use Model\NotificationType;
+use Kanboard\Model\NotificationType;
class NotificationTypeTest extends Base
{
diff --git a/tests/units/Model/ProjectActivityTest.php b/tests/units/Model/ProjectActivityTest.php
index fa45d740..e8adc10d 100644
--- a/tests/units/Model/ProjectActivityTest.php
+++ b/tests/units/Model/ProjectActivityTest.php
@@ -2,11 +2,11 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\TaskFinder;
-use Model\TaskCreation;
-use Model\ProjectActivity;
-use Model\Project;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\ProjectActivity;
+use Kanboard\Model\Project;
class ProjectActivityTest extends Base
{
diff --git a/tests/units/Model/ProjectDailyColumnStatsTest.php b/tests/units/Model/ProjectDailyColumnStatsTest.php
index e01bdcc4..4c801e02 100644
--- a/tests/units/Model/ProjectDailyColumnStatsTest.php
+++ b/tests/units/Model/ProjectDailyColumnStatsTest.php
@@ -2,11 +2,11 @@
require_once __DIR__.'/../Base.php';
-use Model\Project;
-use Model\ProjectDailyColumnStats;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskStatus;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectDailyColumnStats;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskStatus;
class ProjectDailyColumnStatsTest extends Base
{
diff --git a/tests/units/Model/ProjectDuplicationTest.php b/tests/units/Model/ProjectDuplicationTest.php
index 0388d4a2..e3234dfe 100644
--- a/tests/units/Model/ProjectDuplicationTest.php
+++ b/tests/units/Model/ProjectDuplicationTest.php
@@ -2,16 +2,16 @@
require_once __DIR__.'/../Base.php';
-use Model\Action;
-use Model\Project;
-use Model\Category;
-use Model\ProjectPermission;
-use Model\ProjectDuplication;
-use Model\User;
-use Model\Swimlane;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
+use Kanboard\Model\Action;
+use Kanboard\Model\Project;
+use Kanboard\Model\Category;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\ProjectDuplication;
+use Kanboard\Model\User;
+use Kanboard\Model\Swimlane;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
class ProjectDuplicationTest extends Base
{
diff --git a/tests/units/Model/ProjectPermissionTest.php b/tests/units/Model/ProjectPermissionTest.php
index 475dd013..1ee63a76 100644
--- a/tests/units/Model/ProjectPermissionTest.php
+++ b/tests/units/Model/ProjectPermissionTest.php
@@ -2,9 +2,9 @@
require_once __DIR__.'/../Base.php';
-use Model\Project;
-use Model\ProjectPermission;
-use Model\User;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\User;
class ProjectPermissionTest extends Base
{
diff --git a/tests/units/Model/ProjectTest.php b/tests/units/Model/ProjectTest.php
index 3373037d..f90c0dc1 100644
--- a/tests/units/Model/ProjectTest.php
+++ b/tests/units/Model/ProjectTest.php
@@ -2,17 +2,17 @@
require_once __DIR__.'/../Base.php';
-use Core\Translator;
-use Subscriber\ProjectModificationDateSubscriber;
-use Model\Project;
-use Model\ProjectPermission;
-use Model\User;
-use Model\Task;
-use Model\TaskCreation;
-use Model\Acl;
-use Model\Board;
-use Model\Config;
-use Model\Category;
+use Kanboard\Core\Translator;
+use Kanboard\Subscriber\ProjectModificationDateSubscriber;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\User;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\Acl;
+use Kanboard\Model\Board;
+use Kanboard\Model\Config;
+use Kanboard\Model\Category;
class ProjectTest extends Base
{
@@ -165,7 +165,7 @@ class ProjectTest extends Base
$this->assertEquals(1, $tc->create(array('title' => 'Task #1', 'project_id' => 1)));
$called = $this->container['dispatcher']->getCalledListeners();
- $this->assertArrayHasKey(Task::EVENT_CREATE_UPDATE.'.Subscriber\ProjectModificationDateSubscriber::execute', $called);
+ $this->assertArrayHasKey(Task::EVENT_CREATE_UPDATE.'.Kanboard\Subscriber\ProjectModificationDateSubscriber::execute', $called);
$project = $p->getById(1);
$this->assertNotEmpty($project);
diff --git a/tests/units/Model/SubtaskTest.php b/tests/units/Model/SubtaskTest.php
index 5773893c..ba57ab01 100644
--- a/tests/units/Model/SubtaskTest.php
+++ b/tests/units/Model/SubtaskTest.php
@@ -2,20 +2,20 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\TaskCreation;
-use Model\Subtask;
-use Model\Project;
-use Model\Category;
-use Model\User;
-use Core\Session;
-use Model\UserSession;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\Subtask;
+use Kanboard\Model\Project;
+use Kanboard\Model\Category;
+use Kanboard\Model\User;
+use Kanboard\Core\Session;
+use Kanboard\Model\UserSession;
class SubTaskTest extends Base
{
public function onSubtaskCreated($event)
{
- $this->assertInstanceOf('Event\SubtaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\SubtaskEvent', $event);
$data = $event->getAll();
$this->assertArrayHasKey('id', $data);
@@ -33,7 +33,7 @@ class SubTaskTest extends Base
public function onSubtaskUpdated($event)
{
- $this->assertInstanceOf('Event\SubtaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\SubtaskEvent', $event);
$data = $event->getAll();
$this->assertArrayHasKey('id', $data);
@@ -55,7 +55,7 @@ class SubTaskTest extends Base
public function onSubtaskDeleted($event)
{
- $this->assertInstanceOf('Event\SubtaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\SubtaskEvent', $event);
$data = $event->getAll();
$this->assertArrayHasKey('id', $data);
diff --git a/tests/units/Model/SubtaskTimeTrackingTest.php b/tests/units/Model/SubtaskTimeTrackingTest.php
index f68f283d..309be64a 100644
--- a/tests/units/Model/SubtaskTimeTrackingTest.php
+++ b/tests/units/Model/SubtaskTimeTrackingTest.php
@@ -2,14 +2,14 @@
require_once __DIR__.'/../Base.php';
-use Model\TaskFinder;
-use Model\TaskCreation;
-use Model\Subtask;
-use Model\SubtaskTimeTracking;
-use Model\Project;
-use Model\Category;
-use Model\User;
-use Core\Session;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\Subtask;
+use Kanboard\Model\SubtaskTimeTracking;
+use Kanboard\Model\Project;
+use Kanboard\Model\Category;
+use Kanboard\Model\User;
+use Kanboard\Core\Session;
class SubtaskTimeTrackingTest extends Base
{
diff --git a/tests/units/Model/SwimlaneTest.php b/tests/units/Model/SwimlaneTest.php
index 7e1adb8e..3d048abd 100644
--- a/tests/units/Model/SwimlaneTest.php
+++ b/tests/units/Model/SwimlaneTest.php
@@ -2,11 +2,11 @@
require_once __DIR__.'/../Base.php';
-use Model\Project;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Swimlane;
+use Kanboard\Model\Project;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Swimlane;
class SwimlaneTest extends Base
{
diff --git a/tests/units/Model/TaskCreationTest.php b/tests/units/Model/TaskCreationTest.php
index 2a9ced2d..ea0d32e6 100644
--- a/tests/units/Model/TaskCreationTest.php
+++ b/tests/units/Model/TaskCreationTest.php
@@ -2,19 +2,19 @@
require_once __DIR__.'/../Base.php';
-use Model\Config;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\TaskStatus;
-use Model\Project;
-use Model\ProjectPermission;
+use Kanboard\Model\Config;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskStatus;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
class TaskCreationTest extends Base
{
public function onCreate($event)
{
- $this->assertInstanceOf('Event\TaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\TaskEvent', $event);
$event_data = $event->getAll();
$this->assertNotEmpty($event_data);
diff --git a/tests/units/Model/TaskDuplicationTest.php b/tests/units/Model/TaskDuplicationTest.php
index f79bc9f4..95c39308 100644
--- a/tests/units/Model/TaskDuplicationTest.php
+++ b/tests/units/Model/TaskDuplicationTest.php
@@ -2,16 +2,16 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskDuplication;
-use Model\TaskFinder;
-use Model\TaskStatus;
-use Model\Project;
-use Model\ProjectPermission;
-use Model\Category;
-use Model\User;
-use Model\Swimlane;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskDuplication;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskStatus;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\Category;
+use Kanboard\Model\User;
+use Kanboard\Model\Swimlane;
class TaskDuplicationTest extends Base
{
@@ -414,7 +414,7 @@ class TaskDuplicationTest extends Base
public function onMoveProject($event)
{
- $this->assertInstanceOf('Event\TaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\TaskEvent', $event);
$event_data = $event->getAll();
$this->assertNotEmpty($event_data);
diff --git a/tests/units/Model/TaskExportTest.php b/tests/units/Model/TaskExportTest.php
index 52996369..f7f8e2eb 100644
--- a/tests/units/Model/TaskExportTest.php
+++ b/tests/units/Model/TaskExportTest.php
@@ -2,13 +2,13 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskExport;
-use Model\Project;
-use Model\Category;
-use Model\User;
-use Model\Swimlane;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskExport;
+use Kanboard\Model\Project;
+use Kanboard\Model\Category;
+use Kanboard\Model\User;
+use Kanboard\Model\Swimlane;
class TaskExportTest extends Base
{
diff --git a/tests/units/Model/TaskFilterTest.php b/tests/units/Model/TaskFilterTest.php
index 28b5d24a..20e71622 100644
--- a/tests/units/Model/TaskFilterTest.php
+++ b/tests/units/Model/TaskFilterTest.php
@@ -2,15 +2,15 @@
require_once __DIR__.'/../Base.php';
-use Model\Project;
-use Model\User;
-use Model\TaskFilter;
-use Model\TaskCreation;
-use Model\DateParser;
-use Model\Category;
-use Model\Subtask;
-use Model\Config;
-use Model\Swimlane;
+use Kanboard\Model\Project;
+use Kanboard\Model\User;
+use Kanboard\Model\TaskFilter;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\DateParser;
+use Kanboard\Model\Category;
+use Kanboard\Model\Subtask;
+use Kanboard\Model\Config;
+use Kanboard\Model\Swimlane;
class TaskFilterTest extends Base
{
diff --git a/tests/units/Model/TaskFinderTest.php b/tests/units/Model/TaskFinderTest.php
index 1d850ba7..e22f14e1 100644
--- a/tests/units/Model/TaskFinderTest.php
+++ b/tests/units/Model/TaskFinderTest.php
@@ -2,13 +2,13 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\ProjectPermission;
-use Model\Category;
-use Model\User;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\Category;
+use Kanboard\Model\User;
class TaskFinderTest extends Base
{
diff --git a/tests/units/Model/TaskLinkTest.php b/tests/units/Model/TaskLinkTest.php
index 639f3dc8..4db42d99 100644
--- a/tests/units/Model/TaskLinkTest.php
+++ b/tests/units/Model/TaskLinkTest.php
@@ -2,11 +2,11 @@
require_once __DIR__.'/../Base.php';
-use Model\Link;
-use Model\TaskFinder;
-use Model\TaskLink;
-use Model\TaskCreation;
-use Model\Project;
+use Kanboard\Model\Link;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskLink;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\Project;
class TaskLinkTest extends Base
{
diff --git a/tests/units/Model/TaskModificationTest.php b/tests/units/Model/TaskModificationTest.php
index f85f1c10..49b51f9b 100644
--- a/tests/units/Model/TaskModificationTest.php
+++ b/tests/units/Model/TaskModificationTest.php
@@ -2,19 +2,19 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskModification;
-use Model\TaskFinder;
-use Model\TaskStatus;
-use Model\Project;
-use Model\ProjectPermission;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskModification;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskStatus;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
class TaskModificationTest extends Base
{
public function onCreateUpdate($event)
{
- $this->assertInstanceOf('Event\TaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\TaskEvent', $event);
$event_data = $event->getAll();
$this->assertNotEmpty($event_data);
@@ -24,7 +24,7 @@ class TaskModificationTest extends Base
public function onUpdate($event)
{
- $this->assertInstanceOf('Event\TaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\TaskEvent', $event);
$event_data = $event->getAll();
$this->assertNotEmpty($event_data);
@@ -34,7 +34,7 @@ class TaskModificationTest extends Base
public function onAssigneeChange($event)
{
- $this->assertInstanceOf('Event\TaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\TaskEvent', $event);
$event_data = $event->getAll();
$this->assertNotEmpty($event_data);
diff --git a/tests/units/Model/TaskMovedDateSubscriberTest.php b/tests/units/Model/TaskMovedDateSubscriberTest.php
index 6e3fb3bd..0dd6e995 100644
--- a/tests/units/Model/TaskMovedDateSubscriberTest.php
+++ b/tests/units/Model/TaskMovedDateSubscriberTest.php
@@ -2,12 +2,12 @@
require_once __DIR__.'/../Base.php';
-use Model\TaskPosition;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\Swimlane;
-use Subscriber\TaskMovedDateSubscriber;
+use Kanboard\Model\TaskPosition;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\Swimlane;
+use Kanboard\Subscriber\TaskMovedDateSubscriber;
use Symfony\Component\EventDispatcher\EventDispatcher;
class TaskMovedDateSubscriberTest extends Base
diff --git a/tests/units/Model/TaskPermissionTest.php b/tests/units/Model/TaskPermissionTest.php
index af413a76..52a36549 100644
--- a/tests/units/Model/TaskPermissionTest.php
+++ b/tests/units/Model/TaskPermissionTest.php
@@ -2,14 +2,14 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\TaskPermission;
-use Model\Project;
-use Model\Category;
-use Model\User;
-use Model\UserSession;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskPermission;
+use Kanboard\Model\Project;
+use Kanboard\Model\Category;
+use Kanboard\Model\User;
+use Kanboard\Model\UserSession;
class TaskPermissionTest extends Base
{
diff --git a/tests/units/Model/TaskPositionTest.php b/tests/units/Model/TaskPositionTest.php
index 86814c03..d1838d52 100644
--- a/tests/units/Model/TaskPositionTest.php
+++ b/tests/units/Model/TaskPositionTest.php
@@ -2,14 +2,14 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\Board;
-use Model\TaskStatus;
-use Model\TaskPosition;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
-use Model\Swimlane;
+use Kanboard\Model\Task;
+use Kanboard\Model\Board;
+use Kanboard\Model\TaskStatus;
+use Kanboard\Model\TaskPosition;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
+use Kanboard\Model\Swimlane;
class TaskPositionTest extends Base
{
@@ -597,7 +597,7 @@ class TaskPositionTest extends Base
public function onMoveColumn($event)
{
- $this->assertInstanceOf('Event\TaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\TaskEvent', $event);
$event_data = $event->getAll();
$this->assertNotEmpty($event_data);
@@ -609,7 +609,7 @@ class TaskPositionTest extends Base
public function onMovePosition($event)
{
- $this->assertInstanceOf('Event\TaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\TaskEvent', $event);
$event_data = $event->getAll();
$this->assertNotEmpty($event_data);
@@ -621,7 +621,7 @@ class TaskPositionTest extends Base
public function onMoveSwimlane($event)
{
- $this->assertInstanceOf('Event\TaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\TaskEvent', $event);
$event_data = $event->getAll();
$this->assertNotEmpty($event_data);
diff --git a/tests/units/Model/TaskStatusTest.php b/tests/units/Model/TaskStatusTest.php
index e5172c4d..de08ffb3 100644
--- a/tests/units/Model/TaskStatusTest.php
+++ b/tests/units/Model/TaskStatusTest.php
@@ -2,13 +2,13 @@
require_once __DIR__.'/../Base.php';
-use Model\Subtask;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\TaskStatus;
-use Model\Project;
-use Model\ProjectPermission;
+use Kanboard\Model\Subtask;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskStatus;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
class TaskStatusTest extends Base
{
@@ -64,14 +64,14 @@ class TaskStatusTest extends Base
public function onTaskOpen($event)
{
- $this->assertInstanceOf('Event\TaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\TaskEvent', $event);
$this->assertArrayHasKey('task_id', $event);
$this->assertNotEmpty($event['task_id']);
}
public function onTaskClose($event)
{
- $this->assertInstanceOf('Event\TaskEvent', $event);
+ $this->assertInstanceOf('Kanboard\Event\TaskEvent', $event);
$this->assertArrayHasKey('task_id', $event);
$this->assertNotEmpty($event['task_id']);
}
diff --git a/tests/units/Model/TaskTest.php b/tests/units/Model/TaskTest.php
index 37c68a78..192dc098 100644
--- a/tests/units/Model/TaskTest.php
+++ b/tests/units/Model/TaskTest.php
@@ -2,14 +2,14 @@
require_once __DIR__.'/../Base.php';
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\TaskStatus;
-use Model\Project;
-use Model\ProjectPermission;
-use Model\Category;
-use Model\User;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskStatus;
+use Kanboard\Model\Project;
+use Kanboard\Model\ProjectPermission;
+use Kanboard\Model\Category;
+use Kanboard\Model\User;
class TaskTest extends Base
{
diff --git a/tests/units/Model/UserSessionTest.php b/tests/units/Model/UserSessionTest.php
index 31072e6a..66f6faa7 100644
--- a/tests/units/Model/UserSessionTest.php
+++ b/tests/units/Model/UserSessionTest.php
@@ -2,8 +2,8 @@
require_once __DIR__.'/../Base.php';
-use Core\Session;
-use Model\UserSession;
+use Kanboard\Core\Session;
+use Kanboard\Model\UserSession;
class UserSessionTest extends Base
{
diff --git a/tests/units/Model/UserTest.php b/tests/units/Model/UserTest.php
index 85631cd6..90a80954 100644
--- a/tests/units/Model/UserTest.php
+++ b/tests/units/Model/UserTest.php
@@ -2,13 +2,13 @@
require_once __DIR__.'/../Base.php';
-use Model\User;
-use Model\Subtask;
-use Model\Comment;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskFinder;
-use Model\Project;
+use Kanboard\Model\User;
+use Kanboard\Model\Subtask;
+use Kanboard\Model\Comment;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\Project;
class UserTest extends Base
{
diff --git a/tests/units/Model/WebNotificationTest.php b/tests/units/Model/WebNotificationTest.php
index fffeb475..8ed37692 100644
--- a/tests/units/Model/WebNotificationTest.php
+++ b/tests/units/Model/WebNotificationTest.php
@@ -2,16 +2,16 @@
require_once __DIR__.'/../Base.php';
-use Model\TaskFinder;
-use Model\TaskCreation;
-use Model\Subtask;
-use Model\Comment;
-use Model\User;
-use Model\File;
-use Model\Task;
-use Model\Project;
-use Model\WebNotification;
-use Subscriber\NotificationSubscriber;
+use Kanboard\Model\TaskFinder;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\Subtask;
+use Kanboard\Model\Comment;
+use Kanboard\Model\User;
+use Kanboard\Model\File;
+use Kanboard\Model\Task;
+use Kanboard\Model\Project;
+use Kanboard\Model\WebNotification;
+use Kanboard\Subscriber\NotificationSubscriber;
class WebNotificationTest extends Base
{
@@ -41,7 +41,7 @@ class WebNotificationTest extends Base
$this->assertNotEmpty($comment);
$this->assertNotEmpty($file);
- foreach (Subscriber\NotificationSubscriber::getSubscribedEvents() as $event_name => $values) {
+ foreach (NotificationSubscriber::getSubscribedEvents() as $event_name => $values) {
$title = $wn->getTitleFromEvent($event_name, array(
'task' => $task,
'comment' => $comment,
diff --git a/tests/units/Model/WebhookTest.php b/tests/units/Model/WebhookTest.php
index 8ed630e4..39819ba7 100644
--- a/tests/units/Model/WebhookTest.php
+++ b/tests/units/Model/WebhookTest.php
@@ -2,13 +2,13 @@
require_once __DIR__.'/../Base.php';
-use Model\Config;
-use Model\Task;
-use Model\TaskCreation;
-use Model\TaskModification;
-use Model\Project;
-use Model\Comment;
-use Subscriber\WebhookSubscriber;
+use Kanboard\Model\Config;
+use Kanboard\Model\Task;
+use Kanboard\Model\TaskCreation;
+use Kanboard\Model\TaskModification;
+use Kanboard\Model\Project;
+use Kanboard\Model\Comment;
+use Kanboard\Subscriber\WebhookSubscriber;
class WebhookTest extends Base
{