O'Reilly logo

Web Application Development with Yii 2 and PHP by Jeffrey Winesett, Mark Safronov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing the Yii framework into our application

Now that we have the entire supporting infrastructure we need to begin working with, let's return to our first feature we defined at the design stage and define the acceptance test for it.

First end-to-end test

The main point with end-to-end acceptance tests is that we have to deal with our application using only its UI. We don't have any way of direct access to the database or, worse, filesystem around the application. So, to test a query for some data in the database, this data should be inserted into the database first. And it should be done using the UI.

Here are the resulting test steps:

  1. Open the UI for adding customer data to the database.
  2. Add customer #1 to the database. You should see the Customer ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required