mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
committed by
StyleCI Bot
parent
390b529da7
commit
a1a2b35221
@@ -35,7 +35,8 @@ class WithTokenTest extends TestCase
|
||||
{
|
||||
$response = $this->send(
|
||||
$this->request(
|
||||
'POST', '/api/token',
|
||||
'POST',
|
||||
'/api/token',
|
||||
[
|
||||
'json' => [
|
||||
'identification' => 'normal',
|
||||
@@ -66,7 +67,8 @@ class WithTokenTest extends TestCase
|
||||
{
|
||||
$response = $this->send(
|
||||
$this->request(
|
||||
'POST', '/api/token',
|
||||
'POST',
|
||||
'/api/token',
|
||||
[
|
||||
'json' => [
|
||||
'identification' => 'normal',
|
||||
|
@@ -49,7 +49,8 @@ class RequireCsrfTokenTest extends TestCase
|
||||
{
|
||||
$auth = $this->send(
|
||||
$this->request(
|
||||
'POST', '/login',
|
||||
'POST',
|
||||
'/login',
|
||||
[
|
||||
'json' => ['identification' => 'admin', 'password' => 'password'],
|
||||
]
|
||||
@@ -58,7 +59,8 @@ class RequireCsrfTokenTest extends TestCase
|
||||
|
||||
$response = $this->send(
|
||||
$this->request(
|
||||
'POST', '/api/settings',
|
||||
'POST',
|
||||
'/api/settings',
|
||||
[
|
||||
'cookiesFrom' => $auth,
|
||||
'json' => ['csrf_test' => 2],
|
||||
@@ -92,7 +94,8 @@ class RequireCsrfTokenTest extends TestCase
|
||||
|
||||
$auth = $this->send(
|
||||
$this->request(
|
||||
'POST', '/login',
|
||||
'POST',
|
||||
'/login',
|
||||
[
|
||||
'cookiesFrom' => $initial,
|
||||
'json' => ['identification' => 'admin', 'password' => 'password'],
|
||||
@@ -104,7 +107,8 @@ class RequireCsrfTokenTest extends TestCase
|
||||
|
||||
$response = $this->send(
|
||||
$this->request(
|
||||
'POST', '/api/settings',
|
||||
'POST',
|
||||
'/api/settings',
|
||||
[
|
||||
'cookiesFrom' => $auth,
|
||||
'json' => ['csrf_test' => 2],
|
||||
@@ -135,7 +139,8 @@ class RequireCsrfTokenTest extends TestCase
|
||||
|
||||
$auth = $this->send(
|
||||
$this->request(
|
||||
'POST', '/login',
|
||||
'POST',
|
||||
'/login',
|
||||
[
|
||||
'cookiesFrom' => $initial,
|
||||
'json' => ['identification' => 'admin', 'password' => 'password', 'csrfToken' => $token],
|
||||
@@ -147,7 +152,8 @@ class RequireCsrfTokenTest extends TestCase
|
||||
|
||||
$response = $this->send(
|
||||
$this->request(
|
||||
'POST', '/api/settings',
|
||||
'POST',
|
||||
'/api/settings',
|
||||
[
|
||||
'cookiesFrom' => $auth,
|
||||
'json' => ['csrf_test' => 2, 'csrfToken' => $token],
|
||||
@@ -172,7 +178,8 @@ class RequireCsrfTokenTest extends TestCase
|
||||
{
|
||||
$response = $this->send(
|
||||
$this->request(
|
||||
'POST', '/api/settings',
|
||||
'POST',
|
||||
'/api/settings',
|
||||
[
|
||||
'json' => ['csrf_test' => 2],
|
||||
]
|
||||
@@ -200,7 +207,8 @@ class RequireCsrfTokenTest extends TestCase
|
||||
|
||||
$response = $this->send(
|
||||
$this->request(
|
||||
'POST', '/api/settings',
|
||||
'POST',
|
||||
'/api/settings',
|
||||
[
|
||||
'json' => ['csrf_test' => 2],
|
||||
]
|
||||
|
@@ -48,7 +48,8 @@ class CreationTest extends TestCase
|
||||
{
|
||||
$response = $this->send(
|
||||
$this->request(
|
||||
'POST', '/api/users',
|
||||
'POST',
|
||||
'/api/users',
|
||||
[
|
||||
'json' => ['data' => ['attributes' => []]],
|
||||
]
|
||||
@@ -91,7 +92,8 @@ class CreationTest extends TestCase
|
||||
{
|
||||
$response = $this->send(
|
||||
$this->request(
|
||||
'POST', '/api/users',
|
||||
'POST',
|
||||
'/api/users',
|
||||
[
|
||||
'json' => [
|
||||
'data' => [
|
||||
@@ -123,7 +125,8 @@ class CreationTest extends TestCase
|
||||
{
|
||||
$response = $this->send(
|
||||
$this->request(
|
||||
'POST', '/api/users',
|
||||
'POST',
|
||||
'/api/users',
|
||||
[
|
||||
'json' => [
|
||||
'data' => [
|
||||
@@ -158,7 +161,8 @@ class CreationTest extends TestCase
|
||||
|
||||
$response = $this->send(
|
||||
$this->request(
|
||||
'POST', '/api/users',
|
||||
'POST',
|
||||
'/api/users',
|
||||
[
|
||||
'json' => [
|
||||
'data' => [
|
||||
|
Reference in New Issue
Block a user