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 6. Testing the API – PHPBrowser to the Rescue

We are now going to delve into functional testing. In the previous chapter, we created the initial steps that deal with the user model, but now we will be creating the REST interface that deals with the user.

Before we even start to worry about the REST interface and its tests, we will be analyzing what's already available in the Yii basic app and later expand on the topic to create more awesome stuff.

This chapter is hence divided into three sections with an increasing level of difficulty, so keep your eyes peeled and feel free to revisit it multiple times until you understand each section which are:

  • Functional tests in Yii 2

  • Functional tests for REST interfaces

  • Creating a RESTful web service with Yii 2