CapabilitiesTest.php 624 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\Files_Trashbin\Tests;
  7. use OCA\Files_Trashbin\Capabilities;
  8. use Test\TestCase;
  9. class CapabilitiesTest extends TestCase {
  10. /** @var Capabilities */
  11. private $capabilities;
  12. protected function setUp(): void {
  13. parent::setUp();
  14. $this->capabilities = new Capabilities();
  15. }
  16. public function testGetCapabilities(): void {
  17. $capabilities = [
  18. 'files' => [
  19. 'undelete' => true
  20. ]
  21. ];
  22. $this->assertSame($capabilities, $this->capabilities->getCapabilities());
  23. }
  24. }