Browse Source

Fix tests.

mscherer 6 years ago
parent
commit
a36836444e
1 changed files with 5 additions and 7 deletions
  1. 5 7
      tests/TestCase/Utility/TimeTest.php

+ 5 - 7
tests/TestCase/Utility/TimeTest.php

@@ -681,25 +681,23 @@ class TimeTest extends TestCase {
 	 */
 	public function testFuzzyFromOffset() {
 		$ret = $this->Time->fuzzyFromOffset(MONTH);
-		//pr($ret);
+		$this->assertSame('about a month', $ret);
 
 		$ret = $this->Time->fuzzyFromOffset(120);
-		//pr($ret);
+		$this->assertSame('a few minutes', $ret);
 
 		$ret = $this->Time->fuzzyFromOffset(DAY);
-		//pr($ret);
+		$this->assertSame('about a day', $ret);
 
 		$ret = $this->Time->fuzzyFromOffset(DAY + 2 * MINUTE);
-		//pr($ret);
+		$this->assertSame('about a day', $ret);
 
 		// FIX ME! Doesn't work!
 		$ret = $this->Time->fuzzyFromOffset(-DAY);
-		//pr($ret);
+		//dd($ret);
 	}
 
 	/**
-	 * TimeTest::testCweekMod()
-	 *
 	 * @return void
 	 */
 	public function testCweekMod() {