diff options
Diffstat (limited to 'apps/files_trashbin/tests/CapabilitiesTest.php')
-rw-r--r-- | apps/files_trashbin/tests/CapabilitiesTest.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/apps/files_trashbin/tests/CapabilitiesTest.php b/apps/files_trashbin/tests/CapabilitiesTest.php new file mode 100644 index 00000000000..1c460cc5665 --- /dev/null +++ b/apps/files_trashbin/tests/CapabilitiesTest.php @@ -0,0 +1,31 @@ +<?php + +declare(strict_types=1); +/** + * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ +namespace OCA\Files_Trashbin\Tests; + +use OCA\Files_Trashbin\Capabilities; +use Test\TestCase; + +class CapabilitiesTest extends TestCase { + private Capabilities $capabilities; + + protected function setUp(): void { + parent::setUp(); + $this->capabilities = new Capabilities(); + } + + public function testGetCapabilities(): void { + $capabilities = [ + 'files' => [ + 'undelete' => true, + 'delete_from_trash' => true, + ] + ]; + + $this->assertSame($capabilities, $this->capabilities->getCapabilities()); + } +} |