summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Db/FolderTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Db/FolderTest.php')
-rw-r--r--tests/Unit/Db/FolderTest.php29
1 files changed, 18 insertions, 11 deletions
diff --git a/tests/Unit/Db/FolderTest.php b/tests/Unit/Db/FolderTest.php
index 39352425e..4db59cef2 100644
--- a/tests/Unit/Db/FolderTest.php
+++ b/tests/Unit/Db/FolderTest.php
@@ -5,32 +5,37 @@
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
- * @author Alessandro Cosentino <cosenal@gmail.com>
- * @author Bernhard Posselt <dev@bernhard-posselt.com>
- * @copyright Alessandro Cosentino 2012
- * @copyright Bernhard Posselt 2012, 2014
+ * @author Alessandro Cosentino <cosenal@gmail.com>
+ * @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @copyright 2012 Alessandro Cosentino
+ * @copyright 2012-2014 Bernhard Posselt
*/
namespace OCA\News\Tests\Unit\Db;
use OCA\News\Db\Folder;
-class FolderTest extends \PHPUnit_Framework_TestCase {
+class FolderTest extends \PHPUnit_Framework_TestCase
+{
- public function testToAPI() {
+ public function testToAPI()
+ {
$folder = new Folder();
$folder->setId(3);
$folder->setName('name');
- $this->assertEquals([
+ $this->assertEquals(
+ [
'id' => 3,
'name' => 'name'
- ], $folder->toAPI());
+ ], $folder->toAPI()
+ );
}
- public function testSerialize() {
+ public function testSerialize()
+ {
$folder = new Folder();
$folder->setId(3);
$folder->setName('john');
@@ -39,13 +44,15 @@ class FolderTest extends \PHPUnit_Framework_TestCase {
$folder->setOpened(true);
$folder->setDeletedAt(9);
- $this->assertEquals([
+ $this->assertEquals(
+ [
'id' => 3,
'parentId' => 4,
'name' => 'john',
'userId' => 'abc',
'opened' => true,
'deletedAt' => 9,
- ], $folder->jsonSerialize());
+ ], $folder->jsonSerialize()
+ );
}
} \ No newline at end of file