CakePHP 5 - Basic Testing using Migrations, Seeds, Fixtures & Fixture Factories

Published: 22 November 2023
on channel: James McDonald
983
9

This is a rough run through of tests

Covers:
Getting the default PagesControllerTest's running after upgrading to CakePHP 5. Include upgrading and tweaking phpunit.xml.dist
Fixing tests to stop them failing due to Authentication redirects
Building your own custom test schema creator tool (creates tables from default database in the test databases)
Using Fixtures
Basic use of Fixture Factories
Using Seeds as test data

Does NOT cover running the use of TruncateDirtyTables. Check the documentation https://github.com/vierge-noire/cakep... when running Fixture Factories


Watch video CakePHP 5 - Basic Testing using Migrations, Seeds, Fixtures & Fixture Factories online without registration, duration hours minute second in high quality. This video was added by user James McDonald 22 November 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 983 once and liked it 9 people.