From b6e92cb64a5ba6c8eb5222a7732fba50e6079622 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 24 Jun 2016 18:09:01 -0400 Subject: Remove dropdown menus that are now available with task edit form --- tests/units/Model/TaskCreationTest.php | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'tests/units') 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); -- cgit v1.2.3