summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-11-23 12:27:42 +0100
committerAndrey Andreev <narf@devilix.net>2016-11-23 12:27:42 +0100
commit820d9cdaac9a9c0371404ce82b60a26ed3ac938f (patch)
tree1806d3f7f729d5bdce2134f379d74c52b877c03e /tests/codeigniter
parente49aa1f1cb63ad90d6c2d204439f538dcc282243 (diff)
Fix #4917
Diffstat (limited to 'tests/codeigniter')
-rw-r--r--tests/codeigniter/helpers/date_helper_test.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/codeigniter/helpers/date_helper_test.php b/tests/codeigniter/helpers/date_helper_test.php
index c4f99a97c..8a3502280 100644
--- a/tests/codeigniter/helpers/date_helper_test.php
+++ b/tests/codeigniter/helpers/date_helper_test.php
@@ -10,6 +10,14 @@ class Date_helper_test extends CI_TestCase {
// ------------------------------------------------------------------------
+ public function test_nice_date()
+ {
+ $this->assertEquals('2016-11-01', nice_date('201611', 'Y-m-d'));
+ $this->assertEquals('2016-11-23', nice_date('20161123', 'Y-m-d'));
+ }
+
+ // ------------------------------------------------------------------------
+
public function test_now_local()
{
/*