I use find method which use "FORCE INDEX" in Model. Model is fine, but when I make a test for that find method, the SQL error happened. I use test/fixture and define DB schema and data. In the test/fixture, I don't know how to define index. Therefore, DB for test didn't have index. It would be great if you could show me how to define index in test/fixture.
In Model...
$this->Model->find('all', array(
'fields' => array('foo'),
'conditions' => array('foo' => foo),
'joins' => array('FORCE INDEX(foo)'),
);
In test/fixture
var $fields = array(
'id' => ....
'foo' => ....
'created' => ....
'modified' => ....
);