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 24, 2011
1 parent a744a74 commit 02d4188
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Cake/Test/Case/Model/ModelWriteTest.php
Expand Up @@ -3834,6 +3834,8 @@ function testFindAllForeignKey() {
* @return void
*/
function testUpdateAllEmptyValues() {
$this->skipIf($this->db instanceof Sqlserver, 'This test is not compatible with SQL Server.');

$this->loadFixtures('Author', 'Post');
$model = new Author();
$result = $model->updateAll(array('user' => '""'));
Expand Down Expand Up @@ -3953,6 +3955,8 @@ function testUpdateAllWithoutForeignKey() {
* @return void
*/
function testSaveAllEmptyData() {
$this->skipIf($this->db instanceof Sqlserver, 'This test is not compatible with SQL Server.');

$this->loadFixtures('Article', 'ProductUpdateAll', 'Comment', 'Attachment');
$model = new Article();
$result = $model->saveAll(array(), array('validate' => 'first'));
Expand Down

0 comments on commit 02d4188

Please sign in to comment.