Skip to content

Commit

Permalink
add timezone to Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbpcoder committed Jul 26, 2021
1 parent 647467b commit 69e3a4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/CalendarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CalendarTest extends TestCase
{
public function testJalaliDateTime()
{
$pasoonate = Pasoonate::make();
$pasoonate = Pasoonate::make(null, 'Asia/Tehran');

$this->assertEquals($pasoonate->jalali()->parse('yyyy/MM/dd', '1398/12/10')->format('yyyy/MM/dd'), '1398/12/10', 'Jalali Date is ok');

Expand All @@ -31,7 +31,7 @@ public function testJalaliDateTime()

public function testGregorianDateTime()
{
$pasoonate = Pasoonate::make();
$pasoonate = Pasoonate::make(null, 'Asia/Tehran');

$this->assertTrue($pasoonate->gregorian()->setDate(2021,02,05)->isFriday());

Expand All @@ -40,7 +40,7 @@ public function testGregorianDateTime()

public function testShiaDateTime()
{
$pasoonate = Pasoonate::make();
$pasoonate = Pasoonate::make(null, 'Asia/Tehran');

$this->assertTrue($pasoonate->shia()->setDate(1442,7,14)->isFriday());

Expand Down

0 comments on commit 69e3a4c

Please sign in to comment.