QuestionQ19

VerifiedStore Operations and Admin

An Adobe Commerce Architect develops new functionality called Customs Fee, adding a new total for extra costs associated with customs-clearance expenses. The extension enables the fee value to be configured separately for each website through the Adobe Commerce Configuration System.

The Architect intends to cover the new functionality with integration tests. One test case must verify that the total is calculated correctly across different websites.

How should the Architect ensure that test configuration data is added to test methods in accordance with best practices?

Explanation

@magentoConfigFixture sets configuration values for an individual integration-test method and restores the original values after execution. It supports store-scoped configuration, enabling tests to apply distinct configuration values for stores associated with different websites. @magentoDataFixture is intended to create test data rather than configure settings.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!