diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-12-03 17:20:04 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-12-09 09:47:27 +0100 |
commit | b85e34c1da075ad551321541a4e75d0d3a7015a5 (patch) | |
tree | 8e5a85b5e4e77a9fd744d6e89ad594e8a2d02c38 /apps/files_encryption/tests/trashbin.php | |
parent | e67fe0336bde1b10c1b2ba3dc455a9106cfc4be9 (diff) | |
download | nextcloud-server-b85e34c1da075ad551321541a4e75d0d3a7015a5.tar.gz nextcloud-server-b85e34c1da075ad551321541a4e75d0d3a7015a5.zip |
Correctly namespace encryption tests
Diffstat (limited to 'apps/files_encryption/tests/trashbin.php')
-rwxr-xr-x | apps/files_encryption/tests/trashbin.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/files_encryption/tests/trashbin.php b/apps/files_encryption/tests/trashbin.php index 9b2d3039f9c..d924b8ac77a 100755 --- a/apps/files_encryption/tests/trashbin.php +++ b/apps/files_encryption/tests/trashbin.php @@ -20,11 +20,13 @@ * */ +namespace OCA\Files_Encryption\Tests; + /** - * Class Test_Encryption_Trashbin + * Class Trashbin * this class provide basic trashbin app tests */ -class Test_Encryption_Trashbin extends \OCA\Files_Encryption\Tests\TestCase { +class Trashbin extends TestCase { const TEST_ENCRYPTION_TRASHBIN_USER1 = "test-trashbin-user1"; @@ -69,7 +71,7 @@ class Test_Encryption_Trashbin extends \OCA\Files_Encryption\Tests\TestCase { $this->subsubfolder = '/subsubfolder1'; // remember files_trashbin state - $this->stateFilesTrashbin = OC_App::isEnabled('files_trashbin'); + $this->stateFilesTrashbin = \OC_App::isEnabled('files_trashbin'); // we want to tests with app files_trashbin enabled \OC_App::enable('files_trashbin'); @@ -78,10 +80,10 @@ class Test_Encryption_Trashbin extends \OCA\Files_Encryption\Tests\TestCase { protected function tearDown() { // reset app files_trashbin if ($this->stateFilesTrashbin) { - OC_App::enable('files_trashbin'); + \OC_App::enable('files_trashbin'); } else { - OC_App::disable('files_trashbin'); + \OC_App::disable('files_trashbin'); } parent::tearDown(); |