Skip to content

Commit aa26683

Browse files
committed
test: align timezones
1 parent 6b8300c commit aa26683

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ProgramScraperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ public function testScrape(): void
2525
{
2626
$mockScraper = $this->createMock(ScraperInterface::class);
2727
$mockScraper->method('scrapePrograms')
28-
->with(Carbon::create(2025, 7, 15))
28+
->with(Carbon::create(2025, 7, 15, 0, 0, 0, 'Asia/Tokyo'))
2929
->willReturn([
3030
1 => $this->testScrapeData(1, 5),
3131
2 => $this->testScrapeData(2, 6),
3232
]);
3333
$scraper = new ProgramScraper($mockScraper);
34-
$programs = $scraper->scrape(Carbon::create(2025, 7, 15));
34+
$programs = $scraper->scrape(Carbon::create(2025, 7, 15, 0, 0, 0, 'Asia/Tokyo'));
3535
$this->assertSame(array_merge(
3636
$this->testScrapeData(0, 0),
3737
$this->testScrapeData(1, 0)

0 commit comments

Comments
 (0)