euromark 11 年之前
父节点
当前提交
a5112409ba
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Test/Case/Model/MyModelTest.php

+ 1 - 0
Test/Case/Model/MyModelTest.php

@@ -206,6 +206,7 @@ class MyModelTest extends MyCakeTestCase {
 		$postTable = $db->fullTableName($this->Post->table);
 		$authorTable = $db->fullTableName($this->Post->Author->table);
 
+		// Note that the $fields argument needs manual string escaping whereas the $conditions one doesn't!
 		$result = $this->Post->updateAll(array('title' => '"Foo"'), array('title !=' => 'Foo'));
 		$this->assertTrue($result);