|
@@ 4195-4204 (lines=10) @@
|
| 4192 |
|
* |
| 4193 |
|
* @return void |
| 4194 |
|
*/ |
| 4195 |
|
public function testSaveAllNestedSaveAll() { |
| 4196 |
|
$this->loadFixtures('Sample'); |
| 4197 |
|
$TransactionTestModel = new TransactionTestModel(); |
| 4198 |
|
|
| 4199 |
|
$data = array( |
| 4200 |
|
array('apple_id' => 1, 'name' => 'sample5'), |
| 4201 |
|
); |
| 4202 |
|
|
| 4203 |
|
$this->assertTrue($TransactionTestModel->saveAll($data, array('atomic' => true))); |
| 4204 |
|
} |
| 4205 |
|
|
| 4206 |
|
/** |
| 4207 |
|
* testSaveAllTransaction method |
|
@@ 5628-5637 (lines=10) @@
|
| 5625 |
|
* |
| 5626 |
|
* @return void |
| 5627 |
|
*/ |
| 5628 |
|
public function testSaveManyNestedSaveMany() { |
| 5629 |
|
$this->loadFixtures('Sample'); |
| 5630 |
|
$TransactionManyTestModel = new TransactionManyTestModel(); |
| 5631 |
|
|
| 5632 |
|
$data = array( |
| 5633 |
|
array('apple_id' => 1, 'name' => 'sample5'), |
| 5634 |
|
); |
| 5635 |
|
|
| 5636 |
|
$this->assertTrue($TransactionManyTestModel->saveMany($data, array('atomic' => true))); |
| 5637 |
|
} |
| 5638 |
|
|
| 5639 |
|
/** |
| 5640 |
|
* testSaveManyTransaction method |