Skip to content

Commit 7f3cc0f

Browse files
author
Oleksii Korshenko
committed
MAGETWO-71359: Test cron expressions against localized time #10432
- fixed timezone conversion logic
1 parent 618f242 commit 7f3cc0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Cron/Test/Unit/Model/ScheduleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function testTryScheduleWithConversionToAdminStoreTime()
184184
$cronExprArr = ['*', '*', '*', '*', '*'];
185185

186186
// 1. Create mocks
187-
$timezoneConverter = $this->getMock(\Magento\Framework\Stdlib\DateTime\TimezoneInterface::class);
187+
$timezoneConverter = $this->createMock(\Magento\Framework\Stdlib\DateTime\TimezoneInterface::class);
188188
$timezoneConverter->expects($this->once())
189189
->method('date')
190190
->with($scheduledAt)

0 commit comments

Comments
 (0)