Make PHP-CS happy ;-)
This commit is contained in:
parent
631b9a84fc
commit
e9d8af89c2
|
@ -836,6 +836,16 @@ return [
|
||||||
'gid' => 1,
|
'gid' => 1,
|
||||||
'contact-id' => 42,
|
'contact-id' => 42,
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'id' => 2,
|
||||||
|
'gid' => 1,
|
||||||
|
'contact-id' => 42,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 3,
|
||||||
|
'gid' => 2,
|
||||||
|
'contact-id' => 43,
|
||||||
|
],
|
||||||
],
|
],
|
||||||
'search' => [
|
'search' => [
|
||||||
[
|
[
|
||||||
|
|
|
@ -31,7 +31,7 @@ class CreateTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiFavoritesCreateDestroyWithCreateAction()
|
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]);
|
$response = $create->run(['id' => 3]);
|
||||||
|
|
||||||
$json = $this->toJson($response);
|
$json = $this->toJson($response);
|
||||||
|
@ -46,7 +46,7 @@ class CreateTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiFavoritesCreateDestroyWithCreateActionAndRss()
|
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]);
|
$response = $create->run(['id' => 3]);
|
||||||
|
|
||||||
self::assertEquals(ICanCreateResponses::TYPE_RSS, $response->getHeaderLine(ICanCreateResponses::X_HEADER));
|
self::assertEquals(ICanCreateResponses::TYPE_RSS, $response->getHeaderLine(ICanCreateResponses::X_HEADER));
|
||||||
|
|
|
@ -45,7 +45,7 @@ class RetweetTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiStatusesRepeatWithId()
|
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]);
|
$response = $retweet->run(['id' => 1]);
|
||||||
|
|
||||||
$json = $this->toJson($response);
|
$json = $this->toJson($response);
|
||||||
|
@ -60,7 +60,7 @@ class RetweetTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiStatusesRepeatWithSharedId()
|
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]);
|
$response = $retweet->run(['id' => 5]);
|
||||||
|
|
||||||
$json = $this->toJson($response);
|
$json = $this->toJson($response);
|
||||||
|
|
Loading…
Reference in a new issue