summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-11-10 22:28:12 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-11-19 14:52:09 +0100
commit76ebd3a050cb3c84b958f071ec559e6bc9cbc847 (patch)
tree5d781de62a647778ac377e8a1173dea82427328d /apps/files_encryption
parentbb540722cd4e197bd608d9a87e4b10cf66dec5a9 (diff)
downloadnextcloud-server-76ebd3a050cb3c84b958f071ec559e6bc9cbc847.tar.gz
nextcloud-server-76ebd3a050cb3c84b958f071ec559e6bc9cbc847.zip
Make apps/ extend the \Test\TestCase and fix overwritten methods
Diffstat (limited to 'apps/files_encryption')
-rw-r--r--apps/files_encryption/tests/migration.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/files_encryption/tests/migration.php b/apps/files_encryption/tests/migration.php
index 80f30d4e793..8ca2e94c90a 100644
--- a/apps/files_encryption/tests/migration.php
+++ b/apps/files_encryption/tests/migration.php
@@ -23,16 +23,20 @@
use OCA\Encryption;
use OCA\Files_Encryption\Migration;
-class Test_Migration extends PHPUnit_Framework_TestCase {
+class Test_Migration extends \Test\TestCase {
- public function tearDown() {
+ protected function tearDown() {
if (OC_DB::tableExists('encryption_test')) {
OC_DB::dropTable('encryption_test');
}
$this->assertTableNotExist('encryption_test');
+
+ parent::tearDown();
}
- public function setUp() {
+ protected function setUp() {
+ parent::setUp();
+
if (OC_DB::tableExists('encryption_test')) {
OC_DB::dropTable('encryption_test');
}