Acceptance testing
The last type of testing we can automate with Codeception is called acceptance testing. It is very similar to functional testing, with the exception that your application is tested using a real browser rather than a simulated one. This gives the advantage of being able to completely simulate end user behavior. Acceptance testing doesn't have many of the limitations of functional testing, such as memory limitations, $_COOKIE
, $_SESSION
, and header limitations. Moreover, acceptance testing can be done by anyone on your team, as what is tested using acceptance testing replicates the work you would do to test manually. In fact, one of the only downsides of running acceptance tests is that due to the entire browser flow, acceptance tests can be extremely slow for specific tests. In this section, we'll cover how to set up and run acceptance testing with Codeception.
Tip
In this section, we'll be using the source code on the functional_and_acceptance
branch located at https://github...