From a10b775b95d6e7a25d3cf3bb5f8c633f7f1a63f5 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 21 Mar 2013 21:08:54 +0100 Subject: fixed itemmapper test --- controller/feedcontroller.php | 1 + tests/db/ItemMapperTest.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/feedcontroller.php b/controller/feedcontroller.php index d91c52aa3..4f7233b9f 100644 --- a/controller/feedcontroller.php +++ b/controller/feedcontroller.php @@ -34,6 +34,7 @@ use \OCA\AppFramework\Db\MultipleObjectsReturnedException; use \OCA\News\Bl\FeedBl; use \OCA\News\Bl\BLException; + class FeedController extends Controller { private $feedBl; diff --git a/tests/db/ItemMapperTest.php b/tests/db/ItemMapperTest.php index f8db1da70..82b5b2faf 100644 --- a/tests/db/ItemMapperTest.php +++ b/tests/db/ItemMapperTest.php @@ -73,7 +73,7 @@ class ItemMapperTest extends \OCA\AppFramework\Utility\MapperTestUtility { $this->setMapperResult($sql, array($this->id, $this->userId), $this->row); $result = $this->itemMapper->find($this->id, $this->userId); - $this->assertEquals($this->items, $result); + $this->assertEquals($this->items[0], $result); } // -- cgit v1.2.3