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_external/tests/amazons3migration.php | |
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_external/tests/amazons3migration.php')
-rw-r--r-- | apps/files_external/tests/amazons3migration.php | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/apps/files_external/tests/amazons3migration.php b/apps/files_external/tests/amazons3migration.php index 629cf5cfa3c..145213f5293 100644 --- a/apps/files_external/tests/amazons3migration.php +++ b/apps/files_external/tests/amazons3migration.php @@ -23,15 +23,26 @@ namespace Test\Files\Storage; -class AmazonS3Migration extends \PHPUnit_Framework_TestCase { +class AmazonS3Migration extends \Test\TestCase { /** * @var \OC\Files\Storage\Storage instance */ protected $instance; - public function setUp () { - $uuid = uniqid(); + /** @var array */ + protected $params; + + /** @var string */ + protected $oldId; + + /** @var string */ + protected $newId; + + protected function setUp() { + parent::setUp(); + + $uuid = $this->getUniqueID(); $this->params['key'] = 'key'.$uuid; $this->params['secret'] = 'secret'.$uuid; @@ -41,9 +52,11 @@ class AmazonS3Migration extends \PHPUnit_Framework_TestCase { $this->newId = 'amazon::' . $this->params['bucket']; } - public function tearDown () { + protected function tearDown() { $this->deleteStorage($this->oldId); $this->deleteStorage($this->newId); + + parent::tearDown(); } public function testUpdateLegacyOnlyId () { |