- Clone repo
composer install
- Create database:
l4-module
. - Update MySQL config in
app/config/database.php
- Command line: run
php artisan migrate --seed
- Server: run
php artisan serve
- Browse to localhost:8000/posts
- Enter
john@doe.com
as username, andpassword
as the password
Run Codeception, installed via Composer
./vendor/bin/codecept run
Please check out some good test examples provided.
Demonstrates testing of CRUD application with
- PageObjects
- authentication (by user, credentials, http auth)
- usage of session variables
- routes
- creating and checking records in database
Demonstrates testing of Artisan commands. See CliHelper to learn how to perform cleanup between tests, and create cutom runArtisan
command
Demonstrates functional testing of API using REST and Laravel4 modules connected, with
- partial json inclusion in response
- GET/POST/PUT/DELETE requests
- check changes inside database