diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-20 14:53:18 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-11-20 14:53:18 +0100 |
commit | 46e610479514787d114ea519a4d70982413d152e (patch) | |
tree | 9dd79427d97c92e12a40a97e647e72485891738b /tests/lib/repair/repaircollation.php | |
parent | 288acb55a0384b0608b9df0e64dcf62b1fdc7387 (diff) | |
parent | 6202ca33ba76a38b4aea8774018d661f919fa464 (diff) | |
download | nextcloud-server-46e610479514787d114ea519a4d70982413d152e.tar.gz nextcloud-server-46e610479514787d114ea519a4d70982413d152e.zip |
Merge pull request #12297 from owncloud/issue/10991-all-testcase
Issue/10991 all testcase
Diffstat (limited to 'tests/lib/repair/repaircollation.php')
-rw-r--r-- | tests/lib/repair/repaircollation.php | 9 |
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() { |