Answer the question
In order to leave comments, you need to log in
How to test PHPUnit Action module?
There is an Action class which is responsible for accepting asynchronous commands.
There are 2 methods ProductAdd and ProductDelete
, you need to test this class in the following way:
1) send data to the provider for ProductAdd-> save id of added products
2) remove each of the products from the list using the ProductDelete method;
Problem: Unable to set the execution sequence, i.e. when it comes to deleting products - they are not yet in the list and test skip.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question