views:

20

answers:

0

Is there a way to specify the database engine to be used for fixtures in CakePHP test fixtures? Some of my models depend on database transactions, and I would like to write some tests for their correct behavior. Currently I'm simply auto-importing the schema, but the tables get created with MySQL's standard MyISAM engine, which doesn't support transactions.

class FooFixture extends CakeTestFixture {
    public $name = 'Foo';
    public $import = 'Foo';
    public $records = array(...);
}