Book Image

Learning Yii Testing

Book Image

Learning Yii Testing

Overview of this book

Table of Contents (16 chapters)
Learning Yii Testing
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 7. Having Fun Doing Browser Testing

We have finally arrived at the last stage of testing: acceptance testing. This is the topmost way of testing your application with Codeception in Yii.

As we saw in the initial chapters , functional and acceptance tests are quite similar in form and implementation, so you won't see anything particularly new in this chapter.

It is important to grasp the nature of the tests that we are going to create. We can recall from Chapter 6, Testing the API – PHPBrowser to the Rescue, that functional tests are used to ensure the technical correctness of what we've built from a higher standpoint than unit tests. Whereas acceptance tests are the best way of ensuring that the acceptance criteria that were defined at the very beginning are still standing after everything is implemented and put together.

In this chapter, we are going to review the existing tests, install and configure Selenium, and then implement a small feature that will tie everything together with...