QuestionQ25

VerifiedCustomers

An Adobe Commerce Architect is reviewing API functional-test code. Some tests return errors indicating that the customer address is missing.

The test code is shown below:

Question Image

What step should the Architect take to resolve the test errors?

Explanation

@magentoApiDataFixture prepares fixture data for use by API functional tests, so the customer address is available when the API request executes. Adobe Commerce’s API functional-testing documentation uses this annotation for fixtures that seed data required by Web API tests.

Learn more

Community Discussion

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