How do they make sure that this setting is used for all the Integration Tests in their project using best practices?

An Adobe Commerce developer wants to cover their custom modules with Integration Tests. However, the project they are working on includes a 3rd party module that introduces a new search engine which needs to be used in Integration Tests as well. To do so. catalog/search/engine in the core.config_data table needs to be set to the customSearchEngine on the default scope.

Theyalready created a phpunit.xml file in [m2 base dir/dev/tests/integration by copying unmodified content of phpunit.xml.dist from the same directory and will be using it for their tests.

How do they make sure that this setting is used for all the Integration Tests in their project using best practices?
A . Modify the phpunit.xml file they will be using and add the following node inside the phpunit node:

B . Modify or create a magento base dir] dev/test/integration/etcconfig-global.php file and ensure that it contains the following content:



C . Include the following annotationin class-level docboack for event integration test class in the project:

Answer: B

Latest AD0-E709 Dumps Valid Version with 135 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments