From b8fa0246803dab40cf57d40b45984c53046f2d55 Mon Sep 17 00:00:00 2001 From: "Dzial Techniczny WMW Projekt s.c" Date: Tue, 10 Dec 2019 11:34:53 +0100 Subject: Plugins directory and local modifications --- .../Group_assign/Test/Helper/NewTaskHelperTest.php | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 plugins/Group_assign/Test/Helper/NewTaskHelperTest.php (limited to 'plugins/Group_assign/Test/Helper/NewTaskHelperTest.php') diff --git a/plugins/Group_assign/Test/Helper/NewTaskHelperTest.php b/plugins/Group_assign/Test/Helper/NewTaskHelperTest.php new file mode 100644 index 00000000..8c378474 --- /dev/null +++ b/plugins/Group_assign/Test/Helper/NewTaskHelperTest.php @@ -0,0 +1,34 @@ +container); + $plugin->scan(); + } + public function testSelectPriority() + { + $helper = new NewTaskHelper($this->container); + $this->assertNotEmpty($helper->renderPriorityField(array('priority_end' => '1', 'priority_start' => '5', 'priority_default' => '2'), array())); + $this->assertNotEmpty($helper->renderPriorityField(array('priority_end' => '3', 'priority_start' => '1', 'priority_default' => '2'), array())); + } + public function testFormatPriority() + { + $helper = new NewTaskHelper($this->container); + $this->assertEquals( + 'P2', + $helper->renderPriority(2) + ); + $this->assertEquals( + '-P6', + $helper->renderPriority(-6) + ); + } +} -- cgit v1.2.3