euromark 11 years ago
parent
commit
a5112409ba
1 changed files with 1 additions and 0 deletions
  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);
 		$postTable = $db->fullTableName($this->Post->table);
 		$authorTable = $db->fullTableName($this->Post->Author->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'));
 		$result = $this->Post->updateAll(array('title' => '"Foo"'), array('title !=' => 'Foo'));
 		$this->assertTrue($result);
 		$this->assertTrue($result);