summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/CapabilitiesTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/tests/CapabilitiesTest.php')
-rw-r--r--apps/files_sharing/tests/CapabilitiesTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/CapabilitiesTest.php b/apps/files_sharing/tests/CapabilitiesTest.php
index 6cba6ef6c94..fbe8c832c1d 100644
--- a/apps/files_sharing/tests/CapabilitiesTest.php
+++ b/apps/files_sharing/tests/CapabilitiesTest.php
@@ -285,4 +285,11 @@ class CapabilitiesTest extends \Test\TestCase {
$this->assertArrayHasKey('federation', $result);
$this->assertFalse($result['federation']['outgoing']);
}
+
+ public function testFederatedSharingExpirationDate() {
+ $result = $this->getResults([]);
+ $this->assertArrayHasKey('federation', $result);
+ $this->assertEquals(['enabled' => true], $result['federation']['expire_date']);
+ $this->assertEquals(['enabled' => true], $result['federation']['expire_date_supported']);
+ }
}