aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/repair/repaircollation.php
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/repair/repaircollation.php
parentcb3a598cdb238f9ce74dce80ef9e59cdfc531a4f (diff)
downloadnextcloud-server-6202ca33ba76a38b4aea8774018d661f919fa464.tar.gz
nextcloud-server-6202ca33ba76a38b4aea8774018d661f919fa464.zip
Make remaining files extend the test base
Diffstat (limited to 'tests/lib/repair/repaircollation.php')
-rw-r--r--tests/lib/repair/repaircollation.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/lib/repair/repaircollation.php b/tests/lib/repair/repaircollation.php
index 362feb8463f..e711fcd9d83 100644
--- a/tests/lib/repair/repaircollation.php
+++ b/tests/lib/repair/repaircollation.php
@@ -21,7 +21,7 @@ class TestCollationRepair extends \OC\Repair\Collation {
*
* @see \OC\Repair\RepairMimeTypes
*/
-class TestRepairCollation extends PHPUnit_Framework_TestCase {
+class TestRepairCollation extends \Test\TestCase {
/**
* @var TestCollationRepair
@@ -43,7 +43,9 @@ class TestRepairCollation extends PHPUnit_Framework_TestCase {
*/
private $config;
- public function setUp() {
+ protected function setUp() {
+ parent::setUp();
+
$this->connection = \OC_DB::getConnection();
$this->config = \OC::$server->getConfig();
if (!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySqlPlatform) {
@@ -57,8 +59,9 @@ class TestRepairCollation extends PHPUnit_Framework_TestCase {
$this->repair = new TestCollationRepair($this->config, $this->connection);
}
- public function tearDown() {
+ protected function tearDown() {
$this->connection->getSchemaManager()->dropTable($this->tableName);
+ parent::tearDown();
}
public function testCollationConvert() {