From 0ad76cc81afb3b854bd442ceaf5bb3ed1574b79c Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 1 Nov 2018 17:20:34 +0500 Subject: Add test OCA\Files_Trashbin\Capabilities --- apps/files_trashbin/tests/CapabilitiesTest.php | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 apps/files_trashbin/tests/CapabilitiesTest.php (limited to 'apps/files_trashbin') diff --git a/apps/files_trashbin/tests/CapabilitiesTest.php b/apps/files_trashbin/tests/CapabilitiesTest.php new file mode 100644 index 00000000000..2a3e89bf414 --- /dev/null +++ b/apps/files_trashbin/tests/CapabilitiesTest.php @@ -0,0 +1,44 @@ +. + * + */ + +namespace OCA\Files_Trashbin\Tests; + +use OCA\Files_Trashbin\Capabilities; +use Test\TestCase; + +class CapabilitiesTest extends TestCase { + + /** @var Capabilities */ + private $capabilities; + + public function setUp() { + parent::setUp(); + $this->capabilities = new Capabilities(); + } + + public function testGetCapabilities() { + $capabilities = [ + 'files' => [ + 'undelete' => true + ] + ]; + + $this->assertSame($capabilities, $this->capabilities->getCapabilities()); + } +} \ No newline at end of file -- cgit v1.2.3