Skip to content

Commit

Permalink
Cake\I18n\Time toQuarter() update tests
Browse files Browse the repository at this point in the history
Update test case to check for the same value and type
instead of just the value

GitHub Issue #12903
  • Loading branch information
jonmc1 committed Jan 16, 2019
1 parent 7dc413c commit 3c79905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestCase/View/Helper/TimeHelperTest.php
Expand Up @@ -153,7 +153,7 @@ public function testTimeAgoInWordsOutputTimezone()
*/
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));
}

Expand Down

0 comments on commit 3c79905

Please sign in to comment.