S
S
Snorway2016-06-27 07:54:36
PHP
Snorway, 2016-06-27 07:54:36

What is the best way to write a codeception test?

I write functional tests for registration and authorization. Everything is clear with registration, but about authorization, the question arose: would it be correct to use the registration test in the authorization test (so as not to duplicate the code)? Is it customary to connect tests with each other in a similar way, or is it more correct to separately add a user to the database in the authorization test (without the participation of the registration test)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-06-27
@Snorway

quite.
adding a user separately to the database makes sense only if you want to run an authorization test exclusively (I personally don’t see the point in this).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question