diff --git a/src/Config/AuthRoutes.php b/src/Config/AuthRoutes.php index 141978565..5bf96b650 100644 --- a/src/Config/AuthRoutes.php +++ b/src/Config/AuthRoutes.php @@ -20,44 +20,44 @@ class AuthRoutes extends BaseConfig public array $routes = [ 'register' => [ [ - 'get', + 'GET', 'register', 'RegisterController::registerView', 'register', // Route name ], [ - 'post', + 'POST', 'register', 'RegisterController::registerAction', ], ], 'login' => [ [ - 'get', + 'GET', 'login', 'LoginController::loginView', 'login', // Route name ], [ - 'post', + 'POST', 'login', 'LoginController::loginAction', ], ], 'magic-link' => [ [ - 'get', + 'GET', 'login/magic-link', 'MagicLinkController::loginView', 'magic-link', // Route name ], [ - 'post', + 'POST', 'login/magic-link', 'MagicLinkController::loginAction', ], [ - 'get', + 'GET', 'login/verify-magic-link', 'MagicLinkController::verify', 'verify-magic-link', // Route name @@ -65,7 +65,7 @@ class AuthRoutes extends BaseConfig ], 'logout' => [ [ - 'get', + 'GET', 'logout', 'LoginController::logoutAction', 'logout', // Route name @@ -73,19 +73,19 @@ class AuthRoutes extends BaseConfig ], 'auth-actions' => [ [ - 'get', + 'GET', 'auth/a/show', 'ActionController::show', 'auth-action-show', // Route name ], [ - 'post', + 'POST', 'auth/a/handle', 'ActionController::handle', 'auth-action-handle', // Route name ], [ - 'post', + 'POST', 'auth/a/verify', 'ActionController::verify', 'auth-action-verify', // Route name diff --git a/tests/Authentication/Filters/ChainFilterTest.php b/tests/Authentication/Filters/ChainFilterTest.php index baec7e8ef..99124c612 100644 --- a/tests/Authentication/Filters/ChainFilterTest.php +++ b/tests/Authentication/Filters/ChainFilterTest.php @@ -31,7 +31,7 @@ final class ChainFilterTest extends AbstractFilterTestCase public function testFilterNotAuthorized(): void { - $result = $this->call('get', 'protected-route'); + $result = $this->get('protected-route'); $result->assertRedirectTo('/login'); diff --git a/tests/Authentication/Filters/GroupFilterTest.php b/tests/Authentication/Filters/GroupFilterTest.php index a30e90f4a..97330c884 100644 --- a/tests/Authentication/Filters/GroupFilterTest.php +++ b/tests/Authentication/Filters/GroupFilterTest.php @@ -30,7 +30,7 @@ final class GroupFilterTest extends AbstractFilterTestCase public function testFilterNotAuthorized(): void { - $result = $this->call('get', 'protected-route'); + $result = $this->get('protected-route'); $result->assertRedirectTo('/login'); @@ -41,7 +41,7 @@ public function testFilterNotAuthorized(): void public function testFilterNotAuthorizedStoresRedirectToEntranceUrlIntoSession(): void { - $result = $this->call('get', 'protected-route'); + $result = $this->get('protected-route'); $result->assertRedirectTo('/login'); diff --git a/tests/Authentication/Filters/HmacFilterTest.php b/tests/Authentication/Filters/HmacFilterTest.php index ae2235ebd..67cc95278 100644 --- a/tests/Authentication/Filters/HmacFilterTest.php +++ b/tests/Authentication/Filters/HmacFilterTest.php @@ -32,7 +32,7 @@ final class HmacFilterTest extends AbstractFilterTestCase public function testFilterNotAuthorized(): void { - $result = $this->call('get', 'protected-route'); + $result = $this->get('protected-route'); $result->assertStatus(401); diff --git a/tests/Authentication/Filters/JWTFilterTest.php b/tests/Authentication/Filters/JWTFilterTest.php index c4b14c8f2..4477abf1c 100644 --- a/tests/Authentication/Filters/JWTFilterTest.php +++ b/tests/Authentication/Filters/JWTFilterTest.php @@ -65,7 +65,7 @@ protected function setUp(): void public function testFilterNotAuthorized(): void { - $result = $this->call('get', 'protected-route'); + $result = $this->get('protected-route'); $result->assertStatus(401); diff --git a/tests/Authentication/Filters/PermissionFilterTest.php b/tests/Authentication/Filters/PermissionFilterTest.php index b1305bfa4..a4ff0cf0f 100644 --- a/tests/Authentication/Filters/PermissionFilterTest.php +++ b/tests/Authentication/Filters/PermissionFilterTest.php @@ -30,7 +30,7 @@ final class PermissionFilterTest extends AbstractFilterTestCase public function testFilterNotAuthorized(): void { - $result = $this->call('get', 'protected-route'); + $result = $this->get('protected-route'); $result->assertRedirectTo('/login'); @@ -41,7 +41,7 @@ public function testFilterNotAuthorized(): void public function testFilterNotAuthorizedStoresRedirectToEntranceUrlIntoSession(): void { - $result = $this->call('get', 'protected-route'); + $result = $this->get('protected-route'); $result->assertRedirectTo('/login'); diff --git a/tests/Authentication/Filters/SessionFilterTest.php b/tests/Authentication/Filters/SessionFilterTest.php index 933d10041..0bd1c5595 100644 --- a/tests/Authentication/Filters/SessionFilterTest.php +++ b/tests/Authentication/Filters/SessionFilterTest.php @@ -33,7 +33,7 @@ final class SessionFilterTest extends AbstractFilterTestCase public function testFilterNotAuthorized(): void { - $result = $this->call('get', 'protected-route'); + $result = $this->get('protected-route'); $result->assertRedirectTo('/login'); @@ -140,7 +140,7 @@ public function testRedirectsInactiveUsersToStoredConditionalActivationAction(): public function testStoreRedirectsToEntraceUrlIntoSession(): void { - $result = $this->call('get', 'protected-route'); + $result = $this->get('protected-route'); $result->assertRedirectTo('/login'); diff --git a/tests/Authentication/Filters/TokenFilterTest.php b/tests/Authentication/Filters/TokenFilterTest.php index fb399aed6..cb4ea7fcf 100644 --- a/tests/Authentication/Filters/TokenFilterTest.php +++ b/tests/Authentication/Filters/TokenFilterTest.php @@ -31,7 +31,7 @@ final class TokenFilterTest extends AbstractFilterTestCase public function testFilterNotAuthorized(): void { - $result = $this->call('get', 'protected-route'); + $result = $this->get('protected-route'); $result->assertStatus(401);