summaryrefslogtreecommitdiffstats
path: root/tests/unit/controller/ExportControllerTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-15 16:02:32 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-15 16:02:32 +0200
commit464ff6c4c1bda3edbd0f132c4d3d866539d3a117 (patch)
tree96b8fd57e24ebaab762a190a933cd98e1c7a4881 /tests/unit/controller/ExportControllerTest.php
parent89c31ab5fcb2f931fecc5ce82608ff7c8129510a (diff)
renamed bl to businesslayer, handle exception in update routine, fix #69
Diffstat (limited to 'tests/unit/controller/ExportControllerTest.php')
-rw-r--r--tests/unit/controller/ExportControllerTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/unit/controller/ExportControllerTest.php b/tests/unit/controller/ExportControllerTest.php
index b835e585a..74cce1d71 100644
--- a/tests/unit/controller/ExportControllerTest.php
+++ b/tests/unit/controller/ExportControllerTest.php
@@ -42,8 +42,8 @@ class ExportControllerTest extends ControllerTestUtility {
private $request;
private $controller;
private $user;
- private $feedBl;
- private $folderBl;
+ private $feedBusinessLayer;
+ private $folderBusinessLayer;
private $opmlExporter;
/**
@@ -51,16 +51,16 @@ class ExportControllerTest extends ControllerTestUtility {
*/
public function setUp(){
$this->api = $this->getAPIMock();
- $this->feedBl = $this->getMockBuilder('\OCA\News\Bl\FeedBl')
+ $this->feedBusinessLayer = $this->getMockBuilder('\OCA\News\BusinessLayer\FeedBusinessLayer')
->disableOriginalConstructor()
->getMock();
- $this->folderBl = $this->getMockBuilder('\OCA\News\Bl\FolderBl')
+ $this->folderBusinessLayer = $this->getMockBuilder('\OCA\News\BusinessLayer\FolderBusinessLayer')
->disableOriginalConstructor()
->getMock();
$this->request = new Request();
$this->opmlExporter = new OPMLExporter();
$this->controller = new ExportController($this->api, $this->request,
- $this->feedBl, $this->folderBl, $this->opmlExporter);
+ $this->feedBusinessLayer, $this->folderBusinessLayer, $this->opmlExporter);
$this->user = 'john';
}
@@ -76,11 +76,11 @@ class ExportControllerTest extends ControllerTestUtility {
$this->api->expects($this->once())
->method('getUserId')
->will($this->returnValue($this->user));
- $this->feedBl->expects($this->once())
+ $this->feedBusinessLayer->expects($this->once())
->method('findAll')
->with($this->equalTo($this->user))
->will($this->returnValue(array()));
- $this->folderBl->expects($this->once())
+ $this->folderBusinessLayer->expects($this->once())
->method('findAll')
->with($this->equalTo($this->user))
->will($this->returnValue(array()));