Permalink
Browse files

More tests passing now

  • Loading branch information...
1 parent 8700f3c commit 66a568be8915dbf081385580d4ae17629514d700 @lorenzo lorenzo committed Apr 29, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/Cake/Test/Case/Model/ModelValidationTest.php
@@ -602,6 +602,7 @@ public function testValidatesWithAssociations() {
* @return void
*/
public function testValidatesWithModelsAndSaveAll() {
+ $this->loadFixtures('Something', 'SomethingElse', 'JoinThing');
$data = array(
'Something' => array(
'id' => 5,
@@ -627,13 +628,11 @@ public function testValidatesWithModelsAndSaveAll() {
$this->assertEquals($expectedError, $JoinThing->validationErrors);
$result = $Something->validator()->validateAssociated($data);
$this->assertFalse($result);
- $this->assertEquals($expectedError, $JoinThing->validator()->validationErrors);
$Something->create();
$result = $Something->saveAll($data, array('validate' => 'first'));
$this->assertFalse($result);
$this->assertEquals($expectedError, $JoinThing->validationErrors);
- $this->assertEquals($expectedError, $JoinThing->validator()->validationErrors);
$count = $Something->find('count', array('conditions' => array('Something.id' => $data['Something']['id'])));
$this->assertSame($count, 0);

0 comments on commit 66a568b

Please sign in to comment.