2.1
Add SchemaFixture and a bake template for Fixtures.
Once schema.php
and/or seed.php
are generated, you can bake fixtures like this
bin/cake bake fixture all --theme Schema
It will produce this fixture
namespace App\Test\Fixture;
use Schema\TestSuite\Fixture\SchemaFixture;
/**
* KitsFixture
*/
class KitsFixture extends SchemaFixture
{
}
The fixture reads the schema data from schema.php (which is updated after every migration call).
And reads seed from the seed.php file, if not exists, it will be empty