diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-04-02 11:24:14 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-04-02 11:16:10 +0000 |
commit | d6066bf73df1c4155d72658629ba8afeee1aa704 (patch) | |
tree | 085379d311035920650e716ae6f5580800fa8c20 /tests | |
parent | 0e290ca9a2982d775b23a104062c3f5141d66e2a (diff) | |
download | nextcloud-server-d6066bf73df1c4155d72658629ba8afeee1aa704.tar.gz nextcloud-server-d6066bf73df1c4155d72658629ba8afeee1aa704.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')
-rw-r--r-- | tests/lib/Share20/ManagerTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php index 97f22036f5f..c2ca5fe9811 100644 --- a/tests/lib/Share20/ManagerTest.php +++ b/tests/lib/Share20/ManagerTest.php @@ -1533,6 +1533,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(); @@ -1546,7 +1547,6 @@ class ManagerTest extends \Test\TestCase { self::invokePrivate($this->manager, 'validateExpirationDateLink', [$share]); - $save->sub(new \DateInterval('P2D')); $this->assertEquals($save, $share->getExpirationDate()); } |