Skip to content

Commit 3a34ac5

Browse files
Merge pull request #44618 from nextcloud/backport/44612/stable29
[stable29] fix(tests): Fix tests when daytime saving time change happened recently
2 parents 7c98456 + b7d9df2 commit 3a34ac5

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
@@ -1536,6 +1536,7 @@ public function testValidateExpirationDateHookModification() {
15361536

15371537
$save = clone $nextWeek;
15381538
$save->setTime(0, 0);
1539+
$save->sub(new \DateInterval('P2D'));
15391540
$save->setTimezone(new \DateTimeZone(date_default_timezone_get()));
15401541

15411542
$hookListener = $this->getMockBuilder('Dummy')->setMethods(['listener'])->getMock();
@@ -1549,7 +1550,6 @@ public function testValidateExpirationDateHookModification() {
15491550

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

1552-
$save->sub(new \DateInterval('P2D'));
15531553
$this->assertEquals($save, $share->getExpirationDate());
15541554
}
15551555

0 commit comments

Comments
 (0)