From 31ae116fe4ab5cac3d2a85069adae2d211ecc846 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 8 Apr 2014 18:50:10 +0200 Subject: migrated database, utility, bootstrap from appframework --- tests/unit/businesslayer/BusinessLayerTest.php | 4 ++-- tests/unit/businesslayer/FeedBusinessLayerTest.php | 5 ++--- tests/unit/businesslayer/FolderBusinessLayerTest.php | 2 +- tests/unit/businesslayer/ItemBusinessLayerTest.php | 5 ++--- 4 files changed, 7 insertions(+), 9 deletions(-) (limited to 'tests/unit/businesslayer') diff --git a/tests/unit/businesslayer/BusinessLayerTest.php b/tests/unit/businesslayer/BusinessLayerTest.php index 9326da67c..2208e34f8 100644 --- a/tests/unit/businesslayer/BusinessLayerTest.php +++ b/tests/unit/businesslayer/BusinessLayerTest.php @@ -28,8 +28,8 @@ namespace OCA\News\BusinessLayer; require_once(__DIR__ . "/../../classloader.php"); -use \OCA\AppFramework\Db\DoesNotExistException; -use \OCA\AppFramework\Db\MultipleObjectsReturnedException; +use \OCA\News\Db\DoesNotExistException; +use \OCA\News\Db\MultipleObjectsReturnedException; use \OCA\News\Db\Folder; diff --git a/tests/unit/businesslayer/FeedBusinessLayerTest.php b/tests/unit/businesslayer/FeedBusinessLayerTest.php index 40b1fa883..99ecee9f2 100644 --- a/tests/unit/businesslayer/FeedBusinessLayerTest.php +++ b/tests/unit/businesslayer/FeedBusinessLayerTest.php @@ -28,8 +28,7 @@ namespace OCA\News\BusinessLayer; require_once(__DIR__ . "/../../classloader.php"); -use \OCA\AppFramework\Db\DoesNotExistException; - +use \OCA\News\Db\DoesNotExistException; use \OCA\News\Db\Feed; use \OCA\News\Db\Item; use \OCA\News\Fetcher\Fetcher; @@ -55,7 +54,7 @@ class FeedBusinessLayerTest extends \OCA\AppFramework\Utility\TestUtility { $this->time = 222; $this->autoPurgeMinimumInterval = 10; $timeFactory = $this->getMockBuilder( - '\OCA\AppFramework\Utility\TimeFactory') + '\OCA\News\Utility\TimeFactory') ->disableOriginalConstructor() ->getMock(); $timeFactory->expects($this->any()) diff --git a/tests/unit/businesslayer/FolderBusinessLayerTest.php b/tests/unit/businesslayer/FolderBusinessLayerTest.php index b473e5dea..398365739 100644 --- a/tests/unit/businesslayer/FolderBusinessLayerTest.php +++ b/tests/unit/businesslayer/FolderBusinessLayerTest.php @@ -43,7 +43,7 @@ class FolderBusinessLayerTest extends \OCA\AppFramework\Utility\TestUtility { $this->api = $this->getAPIMock(); $this->time = 222; $timeFactory = $this->getMockBuilder( - '\OCA\AppFramework\Utility\TimeFactory') + '\OCA\News\Utility\TimeFactory') ->disableOriginalConstructor() ->getMock(); $timeFactory->expects($this->any()) diff --git a/tests/unit/businesslayer/ItemBusinessLayerTest.php b/tests/unit/businesslayer/ItemBusinessLayerTest.php index c120b753d..2909dae28 100644 --- a/tests/unit/businesslayer/ItemBusinessLayerTest.php +++ b/tests/unit/businesslayer/ItemBusinessLayerTest.php @@ -27,8 +27,7 @@ namespace OCA\News\BusinessLayer; require_once(__DIR__ . "/../../classloader.php"); -use \OCA\AppFramework\Db\DoesNotExistException; - +use \OCA\News\Db\DoesNotExistException; use \OCA\News\Db\Item; use \OCA\News\Db\StatusFlag; use \OCA\News\Db\FeedType; @@ -49,7 +48,7 @@ class ItemBusinessLayerTest extends \OCA\AppFramework\Utility\TestUtility { protected function setUp(){ $this->time = 222; $timeFactory = $this->getMockBuilder( - '\OCA\AppFramework\Utility\TimeFactory') + '\OCA\News\Utility\TimeFactory') ->disableOriginalConstructor() ->getMock(); $timeFactory->expects($this->any()) -- cgit v1.2.3