{"id":28399387,"url":"https://github.com/codeception/sample-l4-app","last_synced_at":"2025-07-05T08:06:16.508Z","repository":{"id":8377985,"uuid":"9949301","full_name":"Codeception/sample-l4-app","owner":"Codeception","description":"Codeception Laravel Tests","archived":false,"fork":false,"pushed_at":"2016-03-05T18:54:27.000Z","size":1641,"stargazers_count":103,"open_issues_count":0,"forks_count":30,"subscribers_count":17,"default_branch":"codeception-2.1","last_synced_at":"2025-06-27T12:24:32.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://codeception.com","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codeception.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-09T01:03:16.000Z","updated_at":"2024-07-22T14:45:19.000Z","dependencies_parsed_at":"2022-07-31T00:17:52.572Z","dependency_job_id":null,"html_url":"https://github.com/Codeception/sample-l4-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Codeception/sample-l4-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fsample-l4-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fsample-l4-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fsample-l4-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fsample-l4-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codeception","download_url":"https://codeload.github.com/Codeception/sample-l4-app/tar.gz/refs/heads/codeception-2.1","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fsample-l4-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262483947,"owners_count":23318370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-01T08:08:58.198Z","updated_at":"2025-06-28T19:30:52.383Z","avatar_url":"https://github.com/Codeception.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample Laravel Application with Codeception tests.\n\n[![Build Status](https://travis-ci.org/Codeception/sample-l4-app.svg?branch=master)](https://travis-ci.org/Codeception/sample-l4-app) \u003c- see Travis CI integration\n\n### Setup\n\n- Clone repo\n- Install dependencies:\n    - `composer install`\n- Create databases:\n    - `touch app/database/database.sqlite`\n    - `touch app/database/testing.sqlite`\n    - `php artisan migrate --seed`\n    - `php artisan migrate --env=testing`\n- Server: run `php artisan serve`\n- Browse to localhost:8000/posts\n- Enter `john@doe.com` as username, and `password` as the password\n\n### To test\n\nRun Codeception, installed via Composer \n\n```\n./vendor/bin/codecept run\n```\n\n## Tests \n\nPlease check out some [good test examples](https://github.com/Codeception/sample-l4-app/tree/master/tests) provided.\n\n### Functional Tests\n\nDemonstrates testing of [CRUD application](https://github.com/Codeception/sample-l4-app/blob/master/tests/functional/PostCrudCest.php) with\n\n* [PageObjects](https://github.com/Codeception/sample-l4-app/blob/master/tests%2Ffunctional%2F_pages%2FPostsPage.php)\n* [authentication](https://github.com/Codeception/sample-l4-app/blob/master/tests%2Ffunctional%2FAuthCest.php) (by user, credentials, http auth)\n* usage of session variables\n* [routes](https://github.com/Codeception/sample-l4-app/blob/master/tests%2Ffunctional%2FRoutesCest.php)\n* creating and checking records in database\n\n### CLI Tests\n\nDemonstrates [testing of Artisan commands](https://github.com/Codeception/sample-l4-app/blob/master/tests%2Fcli%2FGenerateRepositoryCept.php). See [CliHelper](https://github.com/Codeception/sample-l4-app/blob/master/tests/_support/CliHelper.php) to learn how to perform cleanup between tests, and create cutom `runArtisan` command\n\n### API Tests\n\nDemonstrates functional [testing of API](https://github.com/Codeception/sample-l4-app/blob/master/tests%2Fapi%2FPostsResourceCest.php) using REST and Laravel4 modules connected, with\n\n* partial json inclusion in response\n* GET/POST/PUT/DELETE requests\n* check changes inside database\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeception%2Fsample-l4-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeception%2Fsample-l4-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeception%2Fsample-l4-app/lists"}