mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-16 16:41:03 +02:00
Apply Laravel Pint fixes
This commit is contained in:
@ -4,13 +4,12 @@ namespace Tests\Api\v1\Requests;
|
||||
|
||||
use App\Api\v1\Requests\GroupAssignRequest;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Tests\TestCase;
|
||||
|
||||
class GroupAssignRequestTest extends TestCase
|
||||
{
|
||||
|
||||
use WithoutMiddleware;
|
||||
|
||||
/**
|
||||
@ -23,7 +22,7 @@ class GroupAssignRequestTest extends TestCase
|
||||
->andReturn(true);
|
||||
|
||||
$request = new GroupAssignRequest();
|
||||
|
||||
|
||||
$this->assertTrue($request->authorize());
|
||||
}
|
||||
|
||||
@ -32,7 +31,7 @@ class GroupAssignRequestTest extends TestCase
|
||||
*/
|
||||
public function test_valid_data(array $data) : void
|
||||
{
|
||||
$request = new GroupAssignRequest();
|
||||
$request = new GroupAssignRequest();
|
||||
$validator = Validator::make($data, $request->rules());
|
||||
|
||||
$this->assertFalse($validator->fails());
|
||||
@ -46,8 +45,8 @@ class GroupAssignRequestTest extends TestCase
|
||||
return [
|
||||
[[
|
||||
'ids' => [
|
||||
1, 2, 3
|
||||
]
|
||||
1, 2, 3,
|
||||
],
|
||||
]],
|
||||
];
|
||||
}
|
||||
@ -57,7 +56,7 @@ class GroupAssignRequestTest extends TestCase
|
||||
*/
|
||||
public function test_invalid_data(array $data) : void
|
||||
{
|
||||
$request = new GroupAssignRequest();
|
||||
$request = new GroupAssignRequest();
|
||||
$validator = Validator::make($data, $request->rules());
|
||||
|
||||
$this->assertTrue($validator->fails());
|
||||
@ -70,22 +69,21 @@ class GroupAssignRequestTest extends TestCase
|
||||
{
|
||||
return [
|
||||
[[
|
||||
'ids' => null // required
|
||||
'ids' => null, // required
|
||||
]],
|
||||
[[
|
||||
'ids' => '1,2,3' // array
|
||||
'ids' => '1,2,3', // array
|
||||
]],
|
||||
[[
|
||||
'ids' => [
|
||||
'a', 'b', 'c' // array of integers
|
||||
]
|
||||
'a', 'b', 'c', // array of integers
|
||||
],
|
||||
]],
|
||||
[[
|
||||
'ids' => [
|
||||
true, false // array of integers
|
||||
]
|
||||
true, false, // array of integers
|
||||
],
|
||||
]],
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user