diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-29 22:58:30 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-29 22:58:30 +0200 |
commit | cba949fb0771c832326fc7886cced2bdc37e7536 (patch) | |
tree | 9e1a335a83a6006f645c801b762db7525e4c6c59 /tests/unit/controller/FolderApiControllerTest.php | |
parent | b91ef01fdbf14c6a5d58e5c471dbb1fc9d17cdfb (diff) |
order by pubdate
Diffstat (limited to 'tests/unit/controller/FolderApiControllerTest.php')
-rw-r--r-- | tests/unit/controller/FolderApiControllerTest.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/unit/controller/FolderApiControllerTest.php b/tests/unit/controller/FolderApiControllerTest.php index 4a2c922b0..a2e3a4c6f 100644 --- a/tests/unit/controller/FolderApiControllerTest.php +++ b/tests/unit/controller/FolderApiControllerTest.php @@ -73,7 +73,9 @@ class FolderApiControllerTest extends \PHPUnit_Framework_TestCase { $response = $this->folderAPI->index(); - $this->assertEquals($folders, $response); + $this->assertEquals([ + 'folders' => [$folders[0]->toAPI()] + ], $response); } @@ -81,7 +83,7 @@ class FolderApiControllerTest extends \PHPUnit_Framework_TestCase { $folderName = 'test'; $folder = new Folder(); $folder->setName($folderName); - + $this->folderService->expects($this->once()) ->method('purgeDeleted') ->with($this->equalTo($this->user), $this->equalTo(false)); @@ -92,7 +94,9 @@ class FolderApiControllerTest extends \PHPUnit_Framework_TestCase { $response = $this->folderAPI->create($folderName); - $this->assertEquals($folder, $response); + $this->assertEquals([ + 'folders' => [$folder->toAPI()] + ], $response); } |