aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Share20
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-04-02 11:24:14 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-04-02 11:24:14 +0200
commitfda1c42ab75b96da0c0e3cf1b6f7a81dcd800aeb (patch)
tree8377c34a57882a9bdff4e68988ff0b5d85a4c85b /tests/lib/Share20
parent31c63792c2196ba0e8adde6738d1342fb362b9ee (diff)
downloadnextcloud-server-fda1c42ab75b96da0c0e3cf1b6f7a81dcd800aeb.tar.gz
nextcloud-server-fda1c42ab75b96da0c0e3cf1b6f7a81dcd800aeb.zip
fix(tests): Fix tests when daytime saving time change happened recently
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/Share20')
-rw-r--r--tests/lib/Share20/ManagerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php
index dc122826ef9..da173dc2e1f 100644
--- a/tests/lib/Share20/ManagerTest.php
+++ b/tests/lib/Share20/ManagerTest.php
@@ -1536,6 +1536,7 @@ class ManagerTest extends \Test\TestCase {
$save = clone $nextWeek;
$save->setTime(0, 0);
+ $save->sub(new \DateInterval('P2D'));
$save->setTimezone(new \DateTimeZone(date_default_timezone_get()));
$hookListener = $this->getMockBuilder('Dummy')->setMethods(['listener'])->getMock();
@@ -1549,7 +1550,6 @@ class ManagerTest extends \Test\TestCase {
self::invokePrivate($this->manager, 'validateExpirationDateLink', [$share]);
- $save->sub(new \DateInterval('P2D'));
$this->assertEquals($save, $share->getExpirationDate());
}