summaryrefslogtreecommitdiffstats
path: root/tests/lib/files/stream
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-11-07 15:23:15 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-11-19 14:52:07 +0100
commitbb540722cd4e197bd608d9a87e4b10cf66dec5a9 (patch)
treef243bae56944c4b88b2545941a6c6de1e7321f04 /tests/lib/files/stream
parent284ba5b688d7f0a9d2e1f7b9a68a7e8362be5e67 (diff)
downloadnextcloud-server-bb540722cd4e197bd608d9a87e4b10cf66dec5a9.tar.gz
nextcloud-server-bb540722cd4e197bd608d9a87e4b10cf66dec5a9.zip
Use base class to reset the file mapper
Diffstat (limited to 'tests/lib/files/stream')
-rw-r--r--tests/lib/files/stream/quota.php5
-rw-r--r--tests/lib/files/stream/staticstream.php8
2 files changed, 8 insertions, 5 deletions
diff --git a/tests/lib/files/stream/quota.php b/tests/lib/files/stream/quota.php
index d5edace544d..28584cf82db 100644
--- a/tests/lib/files/stream/quota.php
+++ b/tests/lib/files/stream/quota.php
@@ -8,9 +8,10 @@
namespace Test\Files\Stream;
-class Quota extends \PHPUnit_Framework_TestCase {
- public function tearDown() {
+class Quota extends \Test\TestCase {
+ protected function tearDown() {
\OC\Files\Stream\Quota::clear();
+ parent::tearDown();
}
/**
diff --git a/tests/lib/files/stream/staticstream.php b/tests/lib/files/stream/staticstream.php
index d55086196a0..416a4670efd 100644
--- a/tests/lib/files/stream/staticstream.php
+++ b/tests/lib/files/stream/staticstream.php
@@ -8,18 +8,20 @@
namespace Test\Files\Stream;
-class StaticStream extends \PHPUnit_Framework_TestCase {
+class StaticStream extends \Test\TestCase {
private $sourceFile;
private $sourceText;
- public function __construct() {
+ protected function setUp() {
+ parent::setUp();
$this->sourceFile = \OC::$SERVERROOT . '/tests/data/lorem.txt';
$this->sourceText = file_get_contents($this->sourceFile);
}
- public function tearDown() {
+ protected function tearDown() {
\OC\Files\Stream\StaticStream::clear();
+ parent::tearDown();
}
public function testContent() {