summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-24 18:09:01 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-24 18:09:01 -0400
commitb6e92cb64a5ba6c8eb5222a7732fba50e6079622 (patch)
tree8f3f54cebaea33f632c3af00b92b942b275bc2b3 /tests
parent17213da5ce60a3da19789cff14544d0a79ee2df1 (diff)
Remove dropdown menus that are now available with task edit form
Diffstat (limited to 'tests')
-rw-r--r--tests/units/Model/TaskCreationTest.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/units/Model/TaskCreationTest.php b/tests/units/Model/TaskCreationTest.php
index b249bc0b..7f2f6f5f 100644
--- a/tests/units/Model/TaskCreationTest.php
+++ b/tests/units/Model/TaskCreationTest.php
@@ -20,23 +20,6 @@ class TaskCreationTest extends Base
$this->assertEquals('test', $event_data['title']);
}
- public function testNoProjectId()
- {
- $p = new ProjectModel($this->container);
- $tc = new TaskCreationModel($this->container);
- $tf = new TaskFinderModel($this->container);
-
- $this->container['dispatcher']->addListener(TaskModel::EVENT_CREATE_UPDATE, function () {});
- $this->container['dispatcher']->addListener(TaskModel::EVENT_CREATE, function () {});
-
- $this->assertEquals(1, $p->create(array('name' => 'test')));
- $this->assertEquals(0, $tc->create(array('title' => 'test', 'project_id' => 0)));
-
- $called = $this->container['dispatcher']->getCalledListeners();
- $this->assertArrayNotHasKey(TaskModel::EVENT_CREATE_UPDATE.'.closure', $called);
- $this->assertArrayNotHasKey(TaskModel::EVENT_CREATE.'.closure', $called);
- }
-
public function testNoTitle()
{
$p = new ProjectModel($this->container);