From b4cdeba4cf3cd42555700812401727bb86350358 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Tue, 12 Apr 2016 16:36:52 +0200 Subject: [PATCH] Drop seconds test Caused false negatives on Travis --- tests/unit/Grav/Common/Twig/TwigExtensionTest.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/unit/Grav/Common/Twig/TwigExtensionTest.php b/tests/unit/Grav/Common/Twig/TwigExtensionTest.php index 0600e4d94..50b84f553 100644 --- a/tests/unit/Grav/Common/Twig/TwigExtensionTest.php +++ b/tests/unit/Grav/Common/Twig/TwigExtensionTest.php @@ -55,13 +55,12 @@ class TwigExtensionTest extends \Codeception\TestCase\Test public function testNicetimeFilter() { $now = time(); - $threeSeconds = time() - (3); $threeMinutes = time() - (60*3); $threeHours = time() - (60*60*3); $threeDays = time() - (60*60*24*3); $threeMonths = time() - (60*60*24*30*3); $threeYears = time() - (60*60*24*365*3); - $measures = ['seconds','minutes','hours','days','months','years']; + $measures = ['minutes','hours','days','months','years']; $this->assertSame('No date provided', $this->twig_ext->nicetimeFilter(null)); @@ -69,8 +68,6 @@ class TwigExtensionTest extends \Codeception\TestCase\Test $time = 'three' . ucfirst($measures[$i]); $this->assertSame('3 ' . $measures[$i] . ' ago', $this->twig_ext->nicetimeFilter($$time)); } - - $this->assertSame('3 secs ago', $this->twig_ext->nicetimeFilter($threeSeconds, false)); } public function testSafeEmailFilter()