V
V
Vladimir Shturmer2017-03-17 15:05:17
PHP
Vladimir Shturmer, 2017-03-17 15:05:17

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

1 answer(s)
D
Denis, 2017-03-17
@prototype_denis

Annotation "depends" to help you.
https://habrahabr.ru/post/116896/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question