summaryrefslogtreecommitdiff
path: root/tests/units/Helper/DatetimeHelperTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-04 20:10:34 -0500
committerFrederic Guillot <fred@kanboard.net>2016-03-04 20:10:34 -0500
commit8f3e2b2e5c62a6130f6c8867ab335fb4c1a32c5c (patch)
treece28cdc2dba9c31560ef753ac1b4dc39d567b7a6 /tests/units/Helper/DatetimeHelperTest.php
parentf32507d423c46e8e9612b5239728e6c617e4cbcb (diff)
Helper refactoring
Diffstat (limited to 'tests/units/Helper/DatetimeHelperTest.php')
-rw-r--r--tests/units/Helper/DatetimeHelperTest.php16
1 files changed, 8 insertions, 8 deletions
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('&lt;15m', $helper->age(0, 30));
$this->assertEquals('&lt;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));