Skip to content

Commit 68ec45c

Browse files
Merge pull request #44614 from nextcloud/backport/44612/stable27
[stable27] fix(tests): Fix tests when daytime saving time change happened recently
2 parents f59aa61 + 606f258 commit 68ec45c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lib/Share20/ManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,6 +1517,7 @@ public function testValidateExpirationDateHookModification() {
15171517

15181518
$save = clone $nextWeek;
15191519
$save->setTime(0, 0);
1520+
$save->sub(new \DateInterval('P2D'));
15201521
$save->setTimezone(new \DateTimeZone(date_default_timezone_get()));
15211522

15221523
$hookListener = $this->getMockBuilder('Dummy')->setMethods(['listener'])->getMock();
@@ -1530,7 +1531,6 @@ public function testValidateExpirationDateHookModification() {
15301531

15311532
self::invokePrivate($this->manager, 'validateExpirationDateLink', [$share]);
15321533

1533-
$save->sub(new \DateInterval('P2D'));
15341534
$this->assertEquals($save, $share->getExpirationDate());
15351535
}
15361536

0 commit comments

Comments
 (0)