From f15511582d7d8d7f961fcf0ff38f7ce9862f38a9 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 21 Mar 2017 22:04:58 +0100 Subject: fix unit tests --- tests/Unit/Db/MapperFactoryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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(); } -- cgit v1.2.3