summaryrefslogtreecommitdiffstats
path: root/tests/unit/db/ItemMapperTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/db/ItemMapperTest.php')
-rw-r--r--tests/unit/db/ItemMapperTest.php9
1 files changed, 4 insertions, 5 deletions
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);
}