demo
demo copied to clipboard
Codeception test fails (BlogPageCest: Blog page works)
What steps will reproduce the problem?
./vendor/bin/codecept run
What is the expected result?
No errors.
What do you get instead?
1) BlogPageCest: Blog page works.
Test tests/Acceptance/BlogPageCest.php:testBlogPage
Step See "No records"
Fail Failed asserting that on page /blog
There are 3 records at blog page.
Additional info
| Q | A |
|---|---|
| Version | current master |
| PHP version | https://github.com/yiisoft/demo/blob/3d6ca817d4efd08a4acf1a3a93521422c5764421/docker-compose.yml#L5 |
| Operating system | https://github.com/yiisoft/demo/blob/3d6ca817d4efd08a4acf1a3a93521422c5764421/docker-compose.yml#L5 |
Need clear database before run tests
Either current tests should do a cleanup or we should adjust the command needed to run tests. I think doing cleanup is better.