/** * testUpdateAllBooleanConditions * * return @void */ public function testUpdateAllBooleanConditions() { $this->loadFixtures('Item', 'Syfile', 'Portfolio', 'Image', 'ItemsPortfolio'); $TestModel = new Item(); $result = $TestModel->updateAll(array('published' => true), array('Item.id' => 1)); $this->assertTrue($result); $result = $TestModel->find('first', array('fields' => array('id', 'published'), 'conditions' => array('Item.id' => 1))); $this->assertEquals(true, $result['Item']['published']); }