From 703502d7c4d5f06a2d3425b7b7eef62c7fff9863 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 2 Feb 2013 00:21:22 +0100 Subject: spaces to tabs --- tests/controller/FolderControllerTest.php | 84 +++++++++++++++---------------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'tests') diff --git a/tests/controller/FolderControllerTest.php b/tests/controller/FolderControllerTest.php index dd31bc62e..684da0ba3 100644 --- a/tests/controller/FolderControllerTest.php +++ b/tests/controller/FolderControllerTest.php @@ -33,48 +33,48 @@ require_once(__DIR__ . "/../classloader.php"); class FolderControllerTest extends \PHPUnit_Framework_TestCase { - private $api; - private $folderMapper; - private $request; - private $controller; - - - /** - * Gets run before each test - */ - public function setUp(){ - $this->api = $this->getMock('\OCA\AppFramework\Core\API', - null, array('news')); - $this->folderMapper = $this->getMock('FolderMapper', - array('getAll')); - $this->request = new Request(); - $this->controller = new FolderController($this->api, $this->request, - $this->folderMapper); - - } - - - public function testGetAllCalled(){ - $this->folderMapper->expects($this->once()) - ->method('getAll') - ->will($this->returnValue( array() )); - - $this->controller->getAll(); - } - - - public function testGetAllReturnsFolders(){ - $return = array( - 'folder1' => 'name1', - 'folder2' => 'name2' - ); - $this->folderMapper->expects($this->once()) - ->method('getAll') - ->will($this->returnValue($return)); - - $response = $this->controller->getAll(); - $this->assertEquals($return, $response->getParams()); - } + private $api; + private $folderMapper; + private $request; + private $controller; + + + /** + * Gets run before each test + */ + public function setUp(){ + $this->api = $this->getMock('\OCA\AppFramework\Core\API', + null, array('news')); + $this->folderMapper = $this->getMock('FolderMapper', + array('getAll')); + $this->request = new Request(); + $this->controller = new FolderController($this->api, $this->request, + $this->folderMapper); + + } + + + public function testGetAllCalled(){ + $this->folderMapper->expects($this->once()) + ->method('getAll') + ->will($this->returnValue( array() )); + + $this->controller->getAll(); + } + + + public function testGetAllReturnsFolders(){ + $return = array( + 'folder1' => 'name1', + 'folder2' => 'name2' + ); + $this->folderMapper->expects($this->once()) + ->method('getAll') + ->will($this->returnValue($return)); + + $response = $this->controller->getAll(); + $this->assertEquals($return, $response->getParams()); + } } \ No newline at end of file -- cgit v1.2.3