Permalink
Browse files

Skipping tests that is not compatible with SQL Server.

  • Loading branch information...
jrbasso committed May 23, 2011
1 parent e049e35 commit 76831863e3af12c45f08c217fea4b7610f452961
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Cake/Test/Case/Model/BehaviorCollectionTest.php
@@ -606,6 +606,8 @@ function testBehaviorToggling() {
* @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 @@ function testBehaviorHasOneFindCallbacks() {
* @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');

0 comments on commit 7683186

Please sign in to comment.