Browse Source

Cake\I18n\Time toQuarter() update tests

Update test case to check for the same value and type
instead of just the value

GitHub Issue #12903
Jonathan McAndrew 7 years ago
parent
commit
3c79905239
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/View/Helper/TimeHelperTest.php

+ 1 - 1
tests/TestCase/View/Helper/TimeHelperTest.php

@@ -153,7 +153,7 @@ class TimeHelperTest extends TestCase
      */
     public function testToQuarter()
     {
-        $this->assertEquals(4, $this->Time->toQuarter('2007-12-25'));
+        $this->assertSame(4, $this->Time->toQuarter('2007-12-25'));
         $this->assertEquals(['2007-10-01', '2007-12-31'], $this->Time->toQuarter('2007-12-25', true));
     }