Skip to content

Conversation

@27Bslash6
Copy link

@27Bslash6 27Bslash6 commented Nov 28, 2025

Remove usage of legacy AccountSettings fixture in ThemesIndexControllerTest

This pull request is a (multiple allowed):

  • bug fix
  • change of existing behavior
  • new feature

Checklist

  • User stories are present (given, when, then format)
  • Unit tests are passing
  • Selenium tests are passing
  • Check style is not triggering new error or warning

What you did

Addresses #536 - Migrate ThemesIndexControllerTest to Fixture Factories.

Changes:

  • Remove legacy $fixtures = ['plugin.Passbolt/AccountSettings.AccountSettings'] array
  • Add UserFactory::make()->user()->persist() for test user creation
  • Replace logInAsUser() with logInAs($user)

This follows the pattern already established in ThemesSelectControllerTest.php in the same directory. The test only needs an authenticated user to call the themes index endpoint - it doesn't require pre-existing theme settings.

All 6 theme controller tests pass.

Addresses passbolt#536 - Remove usage of legacy AccountSettings fixture.

Changes:
- Replace legacy $fixtures array with UserFactory::make()
- Use logInAs($user) instead of logInAsUser()

This follows the pattern already used in ThemesSelectControllerTest.php
in the same directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant