An open API service indexing awesome lists of open source software.

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

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.