From 8f3e2b2e5c62a6130f6c8867ab335fb4c1a32c5c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 4 Mar 2016 20:10:34 -0500 Subject: Helper refactoring --- tests/units/Helper/DatetimeHelperTest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/units/Helper/DatetimeHelperTest.php') diff --git a/tests/units/Helper/DatetimeHelperTest.php b/tests/units/Helper/DatetimeHelperTest.php index f27a2eb9..19b1b704 100644 --- a/tests/units/Helper/DatetimeHelperTest.php +++ b/tests/units/Helper/DatetimeHelperTest.php @@ -2,19 +2,19 @@ require_once __DIR__.'/../Base.php'; -use Kanboard\Helper\Dt; +use Kanboard\Helper\DateHelper; class DatetimeHelperTest extends Base { public function testGetTime() { - $helper = new Dt($this->container); + $helper = new DateHelper($this->container); $this->assertEquals('17:25', $helper->time(1422206700)); } public function testGetDate() { - $helper = new Dt($this->container); + $helper = new DateHelper($this->container); $this->assertEquals('01/25/2015', $helper->date(1422206700)); $this->assertEquals('01/25/2015', $helper->date('2015-01-25')); $this->assertEquals('', $helper->date('0')); @@ -24,13 +24,13 @@ class DatetimeHelperTest extends Base public function testGetDatetime() { - $helper = new Dt($this->container); + $helper = new DateHelper($this->container); $this->assertEquals('01/25/2015 17:25', $helper->datetime(1422206700)); } public function testAge() { - $helper = new Dt($this->container); + $helper = new DateHelper($this->container); $this->assertEquals('<15m', $helper->age(0, 30)); $this->assertEquals('<30m', $helper->age(0, 1000)); @@ -42,7 +42,7 @@ class DatetimeHelperTest extends Base public function testGetDayHours() { - $helper = new Dt($this->container); + $helper = new DateHelper($this->container); $slots = $helper->getDayHours(); @@ -58,7 +58,7 @@ class DatetimeHelperTest extends Base public function testGetWeekDays() { - $helper = new Dt($this->container); + $helper = new DateHelper($this->container); $slots = $helper->getWeekDays(); @@ -70,7 +70,7 @@ class DatetimeHelperTest extends Base public function testGetWeekDay() { - $helper = new Dt($this->container); + $helper = new DateHelper($this->container); $this->assertEquals('Monday', $helper->getWeekDay(1)); $this->assertEquals('Sunday', $helper->getWeekDay(7)); -- cgit v1.2.3