Skip to content

Commit 29c1930

Browse files
committed
Autoload MiddlewareTest abstract class in composer.json instead of requiring on each middleware test files
1 parent 42441cd commit 29c1930

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
},
3535
"autoload": {
3636
"classmap": [
37-
"src/commands"
37+
"src/commands",
38+
"tests/Middleware/MiddlewareTest.php"
3839
],
3940
"psr-4": {
4041
"Zizaco\\Entrust\\": "src/Entrust/"

tests/Middleware/EntrustAbilityTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
require_once __DIR__ . '/MiddlewareTest.php';
4-
53
use Zizaco\Entrust\Middleware\EntrustAbility;
64
use Mockery as m;
75

tests/Middleware/EntrustPermissionTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
require_once __DIR__ . '/MiddlewareTest.php';
4-
53
use Zizaco\Entrust\Middleware\EntrustPermission;
64
use Mockery as m;
75

tests/Middleware/EntrustRoleTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
require_once __DIR__ . '/MiddlewareTest.php';
4-
53
use Zizaco\Entrust\Middleware\EntrustRole;
64
use Mockery as m;
75

0 commit comments

Comments
 (0)