Skip to content

2.1

Compare
Choose a tag to compare
@raul338 raul338 released this 12 Oct 01:29
· 103 commits to master since this release

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