summaryrefslogtreecommitdiffstats
path: root/tests/lib/session
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-11-10 23:30:38 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-11-19 14:53:59 +0100
commit6202ca33ba76a38b4aea8774018d661f919fa464 (patch)
treea108c8631dad790bc8c3fc175c9c330d18c54ad2 /tests/lib/session
parentcb3a598cdb238f9ce74dce80ef9e59cdfc531a4f (diff)
downloadnextcloud-server-6202ca33ba76a38b4aea8774018d661f919fa464.tar.gz
nextcloud-server-6202ca33ba76a38b4aea8774018d661f919fa464.zip
Make remaining files extend the test base
Diffstat (limited to 'tests/lib/session')
-rw-r--r--tests/lib/session/memory.php3
-rw-r--r--tests/lib/session/session.php5
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/lib/session/memory.php b/tests/lib/session/memory.php
index 2dc236b73bf..84dee548a1e 100644
--- a/tests/lib/session/memory.php
+++ b/tests/lib/session/memory.php
@@ -10,7 +10,8 @@
namespace Test\Session;
class Memory extends Session {
- public function setUp() {
+ protected function setUp() {
+ parent::setUp();
$this->instance = new \OC\Session\Memory(uniqid());
}
}
diff --git a/tests/lib/session/session.php b/tests/lib/session/session.php
index 9ce11274c84..a1ed01b2ec8 100644
--- a/tests/lib/session/session.php
+++ b/tests/lib/session/session.php
@@ -9,14 +9,15 @@
namespace Test\Session;
-abstract class Session extends \PHPUnit_Framework_TestCase {
+abstract class Session extends \Test\TestCase {
/**
* @var \OC\Session\Session
*/
protected $instance;
- public function tearDown() {
+ protected function tearDown() {
$this->instance->clear();
+ parent::tearDown();
}
public function testNotExistsEmpty() {