blob: f5d3bdd9a9b8ef767406634774d2d2196a11de76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
/**
* 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 {
/** @var Capabilities */
private $capabilities;
protected function setUp(): void {
parent::setUp();
$this->capabilities = new Capabilities();
}
public function testGetCapabilities() {
$capabilities = [
'files' => [
'undelete' => true
]
];
$this->assertSame($capabilities, $this->capabilities->getCapabilities());
}
}
|