summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2017-03-21 22:04:58 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2017-03-21 22:04:58 +0100
commitf15511582d7d8d7f961fcf0ff38f7ce9862f38a9 (patch)
tree70cde9ac53960fa650a7214ebee2b0f28caeb35e /tests
parentfdbd289f38e814e441507a05431903416bc58a6f (diff)
fix unit tests
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Db/MapperFactoryTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Db/MapperFactoryTest.php b/tests/Unit/Db/MapperFactoryTest.php
index ce2650ac8..d519b1105 100644
--- a/tests/Unit/Db/MapperFactoryTest.php
+++ b/tests/Unit/Db/MapperFactoryTest.php
@@ -16,7 +16,7 @@ namespace OCA\News\Db;
use OCA\News\Utility\Time;
use PHPUnit_Framework_TestCase;
-use OCP\IDb;
+use OCP\IDBConnection;
use OCA\News\Db\Mysql\ItemMapper as MysqlMapper;
@@ -27,7 +27,7 @@ class MapperFactoryTest extends PHPUnit_Framework_TestCase {
private $settings;
public function setUp() {
- $this->db = $this->getMockBuilder(IDb::class)
+ $this->db = $this->getMockBuilder(IDBConnection::class)
->disableOriginalConstructor()
->getMock();
}