QuestionQ23
VerifiedUtilize Commerce test frameworks throughout the whole workflowAn Architect needs to create an Integration Test that does the following:
- Adds a product by using a data fixture.
- Runs
$this->someLogic->execute($product)on that product. - Verifies that the result is
true.
$this->someLogic has the correct object assigned in the setUp() method.
Product creation and the logic being tested must run in the contexts of two separate store views, with IDs 3 and 4, which have already been created and are available for the test.
How should the Architect satisfy these requirements?
Community Discussion