]> git.mxchange.org Git - friendica.git/commitdiff
Make PHP-CS happy ;-)
authorPhilipp <admin@philipp.info>
Thu, 9 Dec 2021 21:55:15 +0000 (22:55 +0100)
committerPhilipp <admin@philipp.info>
Thu, 9 Dec 2021 21:55:15 +0000 (22:55 +0100)
tests/datasets/api.fixture.php
tests/src/Module/Api/Twitter/Favorites/CreateTest.php
tests/src/Module/Api/Twitter/Statuses/RetweetTest.php

index fa201f7b0ea3f5e2dcfdd7e8b4194e2aab54e9cc..5f87159c49180590cbb1032e29d48beb54e4e810 100644 (file)
@@ -836,6 +836,16 @@ return [
                        'gid' => 1,
                        'contact-id' => 42,
                ],
+               [
+                       'id' => 2,
+                       'gid' => 1,
+                       'contact-id' => 42,
+               ],
+               [
+                       'id' => 3,
+                       'gid' => 2,
+                       'contact-id' => 43,
+               ],
        ],
        'search' => [
                [
index d4d9b4921f7690bb269268c4ba30d7425bd2ca04..00a99643bf362f6e1273074e0792af1b4cb20e9e 100644 (file)
@@ -31,7 +31,7 @@ class CreateTest extends ApiTest
         */
        public function testApiFavoritesCreateDestroyWithCreateAction()
        {
-               $create = new Create(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::POST]);
+               $create   = new Create(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::POST]);
                $response = $create->run(['id' => 3]);
 
                $json = $this->toJson($response);
@@ -46,7 +46,7 @@ class CreateTest extends ApiTest
         */
        public function testApiFavoritesCreateDestroyWithCreateActionAndRss()
        {
-               $create = new Create(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::POST], ['extension' => ICanCreateResponses::TYPE_RSS]);
+               $create   = new Create(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::POST], ['extension' => ICanCreateResponses::TYPE_RSS]);
                $response = $create->run(['id' => 3]);
 
                self::assertEquals(ICanCreateResponses::TYPE_RSS, $response->getHeaderLine(ICanCreateResponses::X_HEADER));
index c8ca3395979d6411ab3837f7a7dd2e4e2a02e976..1b527ccc9f346efd28ec6ba0dd7529d2641d33c7 100644 (file)
@@ -45,7 +45,7 @@ class RetweetTest extends ApiTest
         */
        public function testApiStatusesRepeatWithId()
        {
-               $retweet = new Retweet(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::POST]);
+               $retweet  = new Retweet(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::POST]);
                $response = $retweet->run(['id' => 1]);
 
                $json = $this->toJson($response);
@@ -60,7 +60,7 @@ class RetweetTest extends ApiTest
         */
        public function testApiStatusesRepeatWithSharedId()
        {
-               $retweet = new Retweet(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::POST]);
+               $retweet  = new Retweet(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::POST]);
                $response = $retweet->run(['id' => 5]);
 
                $json = $this->toJson($response);