https://github.com/aircargobook/cakephp-fixture-importer
https://github.com/aircargobook/cakephp-fixture-importer
cakephp-plugin fixture-loading phpunit
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aircargobook/cakephp-fixture-importer
- Owner: aircargobook
- Created: 2019-05-17T11:53:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-06T17:37:36.000Z (almost 6 years ago)
- Last Synced: 2025-04-05T12:09:55.211Z (about 1 year ago)
- Topics: cakephp-plugin, fixture-loading, phpunit
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cakephp-fixture-importer
CakePHP Plugin that extends the capability of a Fixture to load not only structure but already.
## installation
composer require aircargobook/cakephp-fixture-importer
## usage
Load the Trait into your existing fixture.
'example', 'connection' => 'test_fixtures'];
/**
* @return void
*/
public function init()
{
parent::init();
$this->insertDataFromSourceTable();
}
}
It will now load the table structure from the test_fixture connection and insert data from the test_fixture connection into the connection test.