Skip to content

Commit 9e011a7

Browse files
committed
test: update repository tests and remove unnecessary comments
- Remove empty comment lines from multiple test files - Update repository class references in UserLoginLog and UserOperationLog tests - Add @coversNothing annotation to UserRepositoryTest - Reorder trait usage in PassportLoginRequest
1 parent 5619589 commit 9e011a7

20 files changed

+8
-21
lines changed

app/Http/Admin/Request/PassportLoginRequest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
])]
2626
class PassportLoginRequest extends FormRequest
2727
{
28-
use ClientIpRequestTrait, ClientOsTrait;
28+
use ClientIpRequestTrait;
29+
use ClientOsTrait;
2930

3031
public function authorize(): bool
3132
{

storage/swagger/http.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

tests/Feature/Admin/ControllerCase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
/**
2222
* @internal
23-
*
2423
*/
2524
abstract class ControllerCase extends HttpTestCase
2625
{

tests/Feature/Admin/DataCenter/AttachmentControllerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
/**
2323
* @internal
24-
*
2524
*/
2625
final class AttachmentControllerTest extends ControllerCase
2726
{

tests/Feature/Admin/PassportControllerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
/**
2222
* @internal
23-
*
2423
*/
2524
final class PassportControllerTest extends HttpTestCase
2625
{

tests/Feature/Admin/Permission/MenuControllerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
/**
2121
* @internal
22-
*
2322
*/
2423
final class MenuControllerTest extends CrudControllerCase
2524
{

tests/Feature/Admin/Permission/RoleControllerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
/**
2323
* @internal
24-
*
2524
*/
2625
final class RoleControllerTest extends ControllerCase
2726
{

tests/Feature/Admin/Permission/UserControllerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
/**
2626
* @internal
27-
*
2827
*/
2928
final class UserControllerTest extends ControllerCase
3029
{

tests/Feature/Admin/PermissionControllerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
/**
2525
* @internal
26-
*
2726
*/
2827
final class PermissionControllerTest extends ControllerCase
2928
{

tests/Feature/Admin/UserLoginLogControllerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
/**
2323
* @internal
24-
*
2524
*/
2625
final class UserLoginLogControllerTest extends ControllerCase
2726
{

0 commit comments

Comments
 (0)