Skip to content

Commit

Permalink
Skipping tests that is not compatible with SQL Server.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed May 23, 2011
1 parent e049e35 commit 7683186
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Cake/Test/Case/Model/BehaviorCollectionTest.php
Expand Up @@ -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');

Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 7683186

Please sign in to comment.