T
T
tigra2016-05-31 16:13:09
PHP
tigra, 2016-05-31 16:13:09

How to write a test in YII2?

there is actionBooks that receives data about the book by POST.
You need to write a test that will check if the book has been written to the database and return a response if not.
I have already deployed codeception through composer, I’m interested in the code itself, maybe someone has specific examples of test code, there is very little information, it’s not clear on the site how it works.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly Medvedev, 2016-05-31
@tigroid3

Specific test code examples are provided in Sample Applications One and Two .
There is also a good video about this (watch at 2x speed).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question