diff --git a/tests/integration/Owncloud/OcisPhpSdk/DriveTest.php b/tests/integration/Owncloud/OcisPhpSdk/DriveTest.php index 24a352e3..e53d3328 100644 --- a/tests/integration/Owncloud/OcisPhpSdk/DriveTest.php +++ b/tests/integration/Owncloud/OcisPhpSdk/DriveTest.php @@ -298,7 +298,7 @@ public function testSetExpirationDate(): void $this->assertInstanceOf(SharingRole::class, $managerRole, "manager role not found"); $tomorrow = new \DateTimeImmutable('tomorrow'); - $oneYearTime = new \DateTimeImmutable(date('Y-m-d', strtotime('+1 year'))); + $oneYearTime = new \DateTimeImmutable('+1 year'); $this->drive->invite($marie, $managerRole, $tomorrow); $permissions = $this->drive->getPermissions(); diff --git a/tests/integration/Owncloud/OcisPhpSdk/ShareCreatedModifyTest.php b/tests/integration/Owncloud/OcisPhpSdk/ShareCreatedModifyTest.php index db6c4e75..1fc3d12c 100644 --- a/tests/integration/Owncloud/OcisPhpSdk/ShareCreatedModifyTest.php +++ b/tests/integration/Owncloud/OcisPhpSdk/ShareCreatedModifyTest.php @@ -198,7 +198,7 @@ public function testUpdateExpirationDate(): void $tomorrow = new \DateTimeImmutable('tomorrow'); $shareFromInvite = $this->fileToShare->invite($this->einstein, $this->viewerRole, $tomorrow); - $oneYearTime = new \DateTimeImmutable(date('Y-m-d', strtotime('+1 year'))); + $oneYearTime = new \DateTimeImmutable('+1 year'); $shareFromInvite->setExpiration($oneYearTime); $sharedByMeShares = $this->ocis->getSharedByMe(); $this->assertEquals( diff --git a/tests/integration/Owncloud/OcisPhpSdk/ShareGetShareByMeTest.php b/tests/integration/Owncloud/OcisPhpSdk/ShareGetShareByMeTest.php index f185c0e4..173a59cc 100644 --- a/tests/integration/Owncloud/OcisPhpSdk/ShareGetShareByMeTest.php +++ b/tests/integration/Owncloud/OcisPhpSdk/ShareGetShareByMeTest.php @@ -77,7 +77,7 @@ public function testGetShareLinkByMe(): void { $this->sharedResource->createSharingLink( SharingLinkType::VIEW, - new \DateTimeImmutable(date('Y', strtotime('+1 year'))), + new \DateTimeImmutable('+1 year'), self::VALID_LINK_PASSWORD, '', ); @@ -105,7 +105,7 @@ public function testGetShareAndShareLinkByMe(): void $this->sharedResource->invite($this->einstein, $this->editorRole); $this->sharedResource->createSharingLink( SharingLinkType::VIEW, - new \DateTimeImmutable(date('Y', strtotime('+1 year'))), + new \DateTimeImmutable('+1 year'), self::VALID_LINK_PASSWORD, '', );