[JITERA] Add LoginControllerTest for Jitera
Created by: tetsuto-morishima
Overview
This pull request introduces a new test case for the LoginController in the Jitera environment. The test is designed to ensure that the login functionality works as expected.
Changes
- Created a new file
LoginControllerTest.phpin the/tests/jitera/directory. - The test class
LoginControllerTestextendsAbstractWebTestCaseto leverage the existing testing framework. - Implemented the following test methods:
-
testRoutingAdminLogin: Verifies that the admin login page returns a 200 status code. -
testRoutingAdminLoginCheck: Tests the login functionality by posting valid credentials and checks if the user is authenticated. -
testRoutingAdminLogin未ログインの場合は302エラーがかえる: Ensures that accessing the admin homepage without being logged in returns a 302 status code.
-
This test file is based on the existing tests in the EC-CUBE framework and has been adjusted to fit the Jitera project standards.