Skip to content

Commit

Permalink
make analyzer happy
Browse files Browse the repository at this point in the history
  • Loading branch information
individual-it committed Dec 5, 2023
1 parent 3f3410f commit d1bab82
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@
use Owncloud\OcisPhpSdk\DriveOrder;
use Owncloud\OcisPhpSdk\DriveType;
use Owncloud\OcisPhpSdk\Exception\BadRequestException;
use Owncloud\OcisPhpSdk\Exception\ForbiddenException;
use Owncloud\OcisPhpSdk\Ocis;
use Owncloud\OcisPhpSdk\OcisResource;
use Owncloud\OcisPhpSdk\OrderDirection;
use Owncloud\OcisPhpSdk\SharingRole;
use Owncloud\OcisPhpSdk\User;

class ResourceShareLinkTest extends OcisPhpSdkTestCase
{
Expand Down Expand Up @@ -51,7 +48,7 @@ public function setUp(): void
}

/**
* @return array<int,array<int,SharingLinkType>>
* @return array<int,array<int,SharingLinkType|bool|string>>
*/
public function sharingLinkTypeDataProvider(): array
{
Expand Down Expand Up @@ -97,8 +94,10 @@ public function testCreateLinkWithExpiry(): void
{
$tomorrow = new \DateTimeImmutable('tomorrow');
$link = $this->fileToShare->createSharingLink(SharingLinkType::VIEW, $tomorrow);
$this->assertInstanceOf(\DateTimeImmutable::class, $link->getExpiration());
$this->assertSame($tomorrow->getTimestamp(), $link->getExpiration()->getTimestamp());
$createdShares = $this->ocis->getSharedByMe();
$this->assertInstanceOf(\DateTimeImmutable::class, $createdShares[0]->getExpiration());
$this->assertSame($tomorrow->getTimestamp(), $createdShares[0]->getExpiration()->getTimestamp());
}

Expand Down

0 comments on commit d1bab82

Please sign in to comment.