/** * test that saveMany behaves like plain save() when suplied empty data * * @link https://cakephp.lighthouseapp.com/projects/42648/tickets/277-test-saveall-with-validation-returns-incorrect-boolean-when-saving-empty-data * @return void */ public function testSaveManyEmptyData() { $this->skipIf($this->db instanceof Sqlserver, 'This test is not compatible with SQL Server.'); $this->loadFixtures('Article', 'ProductUpdateAll', 'Comment', 'Attachment'); $model = new Article(); $result = $model->saveMany(array(), array('validate' => true)); $this->assertFalse(empty($result)); $model = new ProductUpdateAll(); $result = $model->saveMany(array()); $this->assertFalse($result); }