Skipping tests that is not compatible with SQL Server.

This commit is contained in:
Juan Basso 2011-05-22 22:21:01 -04:00
parent e049e35b5d
commit 76831863e3

View file

@ -606,6 +606,8 @@ class BehaviorCollectionTest extends CakeTestCase {
* @return void
*/
function testBehaviorFindCallbacks() {
$this->skipIf($this->db instanceof Mssql, 'This test is not compatible with Mssql.');
$Apple = new Apple();
$expected = $Apple->find('all');
@ -805,6 +807,8 @@ class BehaviorCollectionTest extends CakeTestCase {
* @return void
*/
function testBehaviorBelongsToFindCallbacks() {
$this->skipIf($this->db instanceof Mssql, 'This test is not compatible with Mssql.');
$Apple = new Apple();
$Apple->unbindModel(array('hasMany' => array('Child'), 'hasOne' => array('Sample')), false);
$expected = $Apple->find('all');