Skip to content

[JITERA] Add LoginControllerTest for Jitera

Tetsuto Morishima requested to merge feat/add-login-controller-test-1752629402 into 4.3

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.php in the /tests/jitera/ directory.
  • The test class LoginControllerTest extends AbstractWebTestCase to 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.

Merge request reports