Skip to content

Conversation

damcou
Copy link
Contributor

@damcou damcou commented Sep 18, 2025

This PR contains:

  • Refactored config.xml files with values contained in ConfigPatch.php
  • Introduced DefaultConfigProvider.php to be used by integration tests
  • Updated TestCase.php to use this new provider
  • Removed ConfigPatch.php

@damcou damcou changed the title MAGE-1404: refactor config.xml and create DefaultConfigProvider for integration tests MAGE-1404: Refactored config.xml Sep 18, 2025
@damcou damcou requested a review from cammonro September 22, 2025 08:57
@damcou damcou marked this pull request as ready for review September 22, 2025 08:57
Copy link
Contributor

@cammonro cammonro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I think this is a much more sensible approach to the integration test fixture.

I am wondering if we should preserve the patch for the settings migrations only? Though we'd have to review the changelog to see when those settings were relocated. Otherwise if someone is upgrading from that older version I would imagine that their settings will not carry over.

*/
public function apply()
{
$movedConfigDirectives = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure during which version of the extension these moved settings were introduced - but I'm wondering if we should add a migrate patch for these as well?

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.

2 participants