From 2bfa9f22b7d97dcdbda5992ad603d9d10482b49f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 14 May 2014 01:04:57 +0200 Subject: fix unittests --- tests/unit/db/ItemMapperTest.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests/unit/db/ItemMapperTest.php') diff --git a/tests/unit/db/ItemMapperTest.php b/tests/unit/db/ItemMapperTest.php index d9d6bf02c..b0a64a16d 100644 --- a/tests/unit/db/ItemMapperTest.php +++ b/tests/unit/db/ItemMapperTest.php @@ -16,7 +16,7 @@ namespace OCA\News\Db; require_once(__DIR__ . "/../../classloader.php"); -class ItemMapperTest extends \OCA\News\Utility\MapperTestUtility { +class ItemMapperTest extends \OCP\AppFramework\Db\MapperTestUtility { private $mapper; private $items; @@ -28,9 +28,8 @@ class ItemMapperTest extends \OCA\News\Utility\MapperTestUtility { private $status; - public function setUp() - { - $this->beforeEach(); + public function setUp() { + parent::setUp(); $this->mapper = new ItemMapper($this->db); @@ -387,7 +386,7 @@ class ItemMapperTest extends \OCA\News\Utility\MapperTestUtility { $rows = array(); $this->setMapperResult($sql, $params, $rows); - $this->setExpectedException('\OCA\News\Db\DoesNotExistException'); + $this->setExpectedException('\OCP\AppFramework\Db\DoesNotExistException'); $this->mapper->getNewestItemId($this->user); } -- cgit v1.2.3