Acceptance Testing our POST Method

In this video you will learn how to write Codeception-based Acceptance tests that cover the POST verb of our FosRestBundle API implementation.

These tests will ensure that we are receiving the correct response codes from our API when both good and bad data are POSTed in. We'll also double check the data is as expected in our database.

This covers quite a few real world concepts of Codeception testing, including handling custom routes and using PageObjects.

If you like the look of Codeception but are unsure of some of the concepts, be sure to check out the Codeception course here at CodeReviewVideos :)

Code For This Course

Get the code for this course.

Code For This Video

Get the code for this video.


# Title Duration
1 GETting Started 17:06
2 GETting Refactored 15:39
3 GET Handled, thin Controllers and fun with Services 17:49
4 Automatic Route Generation 11:32
5 GETting a Collection 12:53
6 POSTing 101 11:24
7 Acceptance Testing our POST Method 05:40
8 Unit Testing our Symfony Form 22:55
9 Implementing and Testing the Form Handler 03:01
10 POST Form Handler Implementation 11:12
11 PUT Introduction 07:34
12 PUT Implementation 15:25
13 Pragmatic PATCH 15:17
14 DELETE'ing Things 03:30