From d5e5504d57d52ddcadc51bd598ca7d9ab54728a9 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 4 Mar 2018 15:30:46 -0800 Subject: [PATCH] Updated toDate() test. --- tests/unit/e_parserTest.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/unit/e_parserTest.php b/tests/unit/e_parserTest.php index c1c25d503..6f7567a5b 100644 --- a/tests/unit/e_parserTest.php +++ b/tests/unit/e_parserTest.php @@ -151,14 +151,19 @@ $time = 1519512067; // Saturday 24 February 2018 - 22:41:07 $long = $class->toDate($time, 'long'); - $this->assertContains('Saturday 24 February 2018',$long); + $this->assertContains('Saturday 24 February 2018',$long); $short = $class->toDate($time, 'short'); $this->assertContains('Feb 2018', $short); $rel = $class->toDate($time, 'relative'); $this->assertContains('ago', $rel); - + $this->assertContains('data-livestamp="1519512067"', $rel); + + $custom = $class->toDate($time, 'dd-M-yy'); + $this->assertContains('24-Feb-18', $custom); + + } /*