浏览代码

Skipping tests that is not compatible with SQL Server.

Juan Basso 15 年之前
父节点
当前提交
76831863e3
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/Cake/Test/Case/Model/BehaviorCollectionTest.php

+ 4 - 0
lib/Cake/Test/Case/Model/BehaviorCollectionTest.php

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