summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-04-09 18:51:08 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-04-09 18:51:08 +0200
commit4fefbdb4f0ac181d0a59d406e70b86bf785ebde5 (patch)
tree1e3ed03a487dfec19e55c5662b8c0d8ee109c8f7 /tests
parent2d17054d766746456faf769c920c8674b5afc4e5 (diff)
try to run migration for mysql and postgres
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/upgrade/UpgradeTest.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/unit/upgrade/UpgradeTest.php b/tests/unit/upgrade/UpgradeTest.php
index 936c329ca..d33cf9aff 100644
--- a/tests/unit/upgrade/UpgradeTest.php
+++ b/tests/unit/upgrade/UpgradeTest.php
@@ -22,18 +22,27 @@ class UpgradeTest extends \PHPUnit_Framework_TestCase {
/** @var IConfig */
private $config;
+ /** @var IDBConnection */
+ private $db;
+
public function setUp() {
$this->config = $this->getMockBuilder(
'\OCP\IConfig')
->disableOriginalConstructor()
->getMock();
+ $this->db = $this->getMockBuilder(
+ '\OCP\IDBConnection')
+ ->disableOriginalConstructor()
+ ->getMock();
+
$this->service = $this->getMockBuilder(
'\OCA\News\Service\ItemService')
->disableOriginalConstructor()
->getMock();
- $this->upgrade = new Upgrade($this->config, $this->service, 'news');
+ $this->upgrade = new Upgrade($this->config, $this->service,
+ $this->db, 'news');
}
public function testUpgrade() {