From 5b94705cf3918dc7986c6043b1fbe776bf22958f Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Tue, 27 Mar 2018 15:35:06 +0200 Subject: Core: Fix compatibility with nextcloud codestyle (#280) --- tests/Unit/Db/FolderTest.php | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'tests/Unit/Db/FolderTest.php') 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 - * @author Bernhard Posselt - * @copyright Alessandro Cosentino 2012 - * @copyright Bernhard Posselt 2012, 2014 + * @author Alessandro Cosentino + * @author Bernhard Posselt + * @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 -- cgit v1.2.3