summaryrefslogtreecommitdiffstats
path: root/tests/controller/FolderControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/controller/FolderControllerTest.php')
-rw-r--r--tests/controller/FolderControllerTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/controller/FolderControllerTest.php b/tests/controller/FolderControllerTest.php
index 52836b092..531584ddc 100644
--- a/tests/controller/FolderControllerTest.php
+++ b/tests/controller/FolderControllerTest.php
@@ -62,16 +62,16 @@ class FolderControllerTest extends ControllerTestUtility {
/**
* getAll
*/
- public function testGetAllCalled(){
+ public function testFoldersCalled(){
$this->folderBl->expects($this->once())
->method('findAll')
->will($this->returnValue( array() ));
- $this->controller->getAll();
+ $this->controller->folders();
}
- public function testGetAllReturnsFolders(){
+ public function testFoldersReturnsFolders(){
$return = array(
new Folder(),
new Folder(),
@@ -80,7 +80,7 @@ class FolderControllerTest extends ControllerTestUtility {
->method('findAll')
->will($this->returnValue($return));
- $response = $this->controller->getAll();
+ $response = $this->controller->folders();
$expected = array(
'folders' => $return
);
@@ -88,16 +88,16 @@ class FolderControllerTest extends ControllerTestUtility {
}
- public function testGetAllAnnotations(){
- $methodName = 'getAll';
+ public function testFoldersAnnotations(){
+ $methodName = 'folders';
$annotations = array('IsAdminExemption', 'IsSubAdminExemption', 'Ajax');
$this->assertAnnotations($this->controller, $methodName, $annotations);
}
- public function testGetAllReturnsJSON(){
- $response = $this->controller->getAll();
+ public function testFoldersReturnsJSON(){
+ $response = $this->controller->folders();
$this->assertTrue($response instanceof JSONResponse);
}