{"id":41268881,"url":"https://github.com/nojimage/codeception-cakefixture","last_synced_at":"2026-01-23T02:17:15.730Z","repository":{"id":56977180,"uuid":"113566004","full_name":"nojimage/codeception-cakefixture","owner":"nojimage","description":"CakePHP's Fixture loader for Codeception","archived":false,"fork":false,"pushed_at":"2018-03-05T02:39:39.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-16T08:11:13.085Z","etag":null,"topics":["cakephp","codeception-module","fixture"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nojimage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-08T11:10:48.000Z","updated_at":"2022-09-26T04:38:41.000Z","dependencies_parsed_at":"2022-08-21T08:10:51.137Z","dependency_job_id":null,"html_url":"https://github.com/nojimage/codeception-cakefixture","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nojimage/codeception-cakefixture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojimage%2Fcodeception-cakefixture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojimage%2Fcodeception-cakefixture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojimage%2Fcodeception-cakefixture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojimage%2Fcodeception-cakefixture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nojimage","download_url":"https://codeload.github.com/nojimage/codeception-cakefixture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojimage%2Fcodeception-cakefixture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28677823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"online","status_checked_at":"2026-01-23T02:00:08.296Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cakephp","codeception-module","fixture"],"created_at":"2026-01-23T02:17:14.934Z","updated_at":"2026-01-23T02:17:15.723Z","avatar_url":"https://github.com/nojimage.png","language":"PHP","readme":"# CakeFixture - CakePHP's Fixture loader for Codeception\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"LICENSE.txt\" target=\"_blank\"\u003e\n        \u003cimg alt=\"Software License\" src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://travis-ci.org/nojimage/codeception-cakefixture\" target=\"_blank\"\u003e\n        \u003cimg alt=\"Build Status\" src=\"https://img.shields.io/travis/nojimage/codeception-cakefixture/master.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/elstc/codeception-cakefixture\" target=\"_blank\"\u003e\n        \u003cimg alt=\"Latest Stable Version\" src=\"https://img.shields.io/packagist/v/elstc/codeception-cakefixture.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nThis Codeception module can be able load [CakePHP Fixutre](https://book.cakephp.org/3.0/en/development/testing.html#fixtures) in your test case.\n\n## Installation\n\nYou can install this plugin into your CakePHP application using [composer](http://getcomposer.org).\n\nThe recommended way to install composer packages is:\n\n```\ncomposer require --dev elstc/codeception-cakefixture\n```\n\n\nThen enable this module in your test suite configration file (eg: `acceptance.suite.yml`, `functional.suite.yml`, and etc...):\n\n```\nmodules:\n    enabled:\n        - CakeFixture\n```\n\nSee: [06-ModulesAndHelpers - Codeception - Documentation](http://codeception.com/docs/06-ModulesAndHelpers)\n\n\nIf you have not yet read the CakePHP bootstrap file with in the Codeception bootstrap, then load it:\n\n```php\n\u003c?php\n// your tests/_bootstrap.php\n\nrequire_once '__YOUR_CAKEPHP_CONFIG_PATH__/bootstrap.php';\n\n```\n\n## Usage\n\n### Cest\n\nIn your `Cest` test case, write `$fixutures` property:\n\n```php\nclass AwesomeCest\n{\n    public $fixtures = [\n        'app.users',\n        'app.posts',\n    ];\n\n    // ...\n}\n```\n\nYou can use `$autoFixtures`, `$dropTables` property, and `loadFixtures()` method:\n\n```php\nclass AwesomeCest\n{\n    public $autoFixtures = false;\n    public $dropTables = false;\n    public $fixtures = [\n        'app.users',\n        'app.posts',\n    ];\n\n    public function tryYourSenario($I)\n    {\n        // load fixtures manually\n        $I-\u003eloadFixtures('Users', 'Posts');\n        // or load all fixtures\n        $I-\u003eloadFixtures();\n        // ...\n    }\n}\n```\n\n### Cept\n\nIn your `Cept` test case, use `$I-\u003euseFixtures()` and `$I-\u003eloadFixtures()`:\n\n```php\n$I = new FunctionalTester($scenario);\n\n// You should call `useFixtures` before `loadFixtures`\n$I-\u003euseFixtures('app.users', 'app.posts');\n// Then load fixtures manually\n$I-\u003eloadFixtures('Users', 'Posts');\n// or load all fixtures\n$I-\u003eloadFixtures();\n```\n\n\n\n## Configuration options\n\n#### `debug`\n\nPass to FixtureManager's debug option.\n\ndefault: `false`\n\n\n#### `autoFixures`\n\nDefault `$autoFixtures` property.\n\ndefault: `true`\n\n#### `dropTables`\n\nDefault `$dropTables` property.\n\ndefault: `true`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnojimage%2Fcodeception-cakefixture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnojimage%2Fcodeception-cakefixture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnojimage%2Fcodeception-cakefixture/lists"}