mirror of
https://github.com/nextcloud/server.git
synced 2025-03-15 00:43:23 +00:00
fix(tests): Fix tests when daytime saving time change happened recently
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
31c63792c2
commit
fda1c42ab7
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue