Codeception Laravel Tests
PHP Other
Latest commit 8f1f442 Mar 5, 2016 @Naktibalda Naktibalda Merge pull request #10 from Codeception/min-version-of-patchwork-utf8
Composer.json modifications to get Codeception lowest-dependencies build pass
Permalink
Failed to load latest commit information.
app Add tests for getInternalDomains method of Laravel 4 module Oct 1, 2015
bootstrap Initial commit May 7, 2013
public
tests Composer update and fixes to make tests run again Feb 18, 2016
.gitattributes Initial commit May 7, 2013
.gitignore
.travis.yml Remove acceptance tests from Travis build May 22, 2015
CONTRIBUTING.md Initial commit May 7, 2013
artisan
c3.php Setup code coverage May 22, 2015
codeception.yml Setup code coverage May 22, 2015
composer.json Deleted pre-update-cmd Mar 5, 2016
phpunit.xml Initial commit May 7, 2013
readme.md Force Travis run Jun 16, 2015
server.php Initial commit May 7, 2013

readme.md

Sample Laravel Application with Codeception tests.

Build Status <- see Travis CI integration

Setup

  • Clone repo
  • Install dependencies:
    • composer install
  • Create databases:
    • touch app/database/database.sqlite
    • touch app/database/testing.sqlite
    • php artisan migrate --seed
    • php artisan migrate --env=testing
  • Server: run php artisan serve
  • Browse to localhost:8000/posts
  • Enter john@doe.com as username, and password as the password

To test

Run Codeception, installed via Composer

./vendor/bin/codecept run

Tests

Please check out some good test examples provided.

Functional Tests

Demonstrates testing of CRUD application with

CLI Tests

Demonstrates testing of Artisan commands. See CliHelper to learn how to perform cleanup between tests, and create cutom runArtisan command

API Tests

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