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