diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-11-10 22:28:12 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-11-19 14:52:09 +0100 |
commit | 76ebd3a050cb3c84b958f071ec559e6bc9cbc847 (patch) | |
tree | 5d781de62a647778ac377e8a1173dea82427328d /apps/files_encryption | |
parent | bb540722cd4e197bd608d9a87e4b10cf66dec5a9 (diff) | |
download | nextcloud-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.php | 10 |
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'); } |