Specify database engine to use in fixtures
        Posted  
        
            by deceze
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by deceze
        
        
        
        Published on 2010-06-15T05:07:09Z
        Indexed on 
            2010/06/15
            5:12 UTC
        
        
        Read the original article
        Hit count: 322
        
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(...);
}
        © Stack Overflow or respective owner