Permalink
Browse files

Wrapping long lines.

  • Loading branch information...
1 parent 2b1efaf commit ac9721d582168fb7c090ae445e20d59cc811b354 @markstory markstory committed Jul 30, 2010
Showing with 21 additions and 7 deletions.
  1. +21 −7 cake/tests/cases/libs/model/behaviors/acl.test.php
@@ -277,7 +277,9 @@ function testAfterSave() {
),
);
$Post->save($data);
- $result = $this->Aco->find('first', array('conditions' => array('Aco.model' => 'Post', 'Aco.foreign_key' => $Post->id)));
+ $result = $this->Aco->find('first', array(
+ 'conditions' => array('Aco.model' => 'Post', 'Aco.foreign_key' => $Post->id)
+ ));
$this->assertTrue(is_array($result));
$this->assertEqual($result['Aco']['model'], 'Post');
$this->assertEqual($result['Aco']['foreign_key'], $Post->id);
@@ -300,7 +302,9 @@ function testAfterSave() {
),
);
$Person->save($data);
- $result = $this->Aro->find('first', array('conditions' => array('Aro.model' => 'AclPerson', 'Aro.foreign_key' => $Person->id)));
+ $result = $this->Aro->find('first', array(
+ 'conditions' => array('Aro.model' => 'AclPerson', 'Aro.foreign_key' => $Person->id)
+ ));
$this->assertTrue(is_array($result));
$this->assertEqual($result['Aro']['parent_id'], 5);
@@ -322,7 +326,9 @@ function testAfterSave() {
$Person->read(null, 8);
$Person->set('mother_id', 1);
$Person->save();
- $result = $this->Aro->find('first', array('conditions' => array('Aro.model' => 'AclPerson', 'Aro.foreign_key' => $Person->id)));
+ $result = $this->Aro->find('first', array(
+ 'conditions' => array('Aro.model' => 'AclPerson', 'Aro.foreign_key' => $Person->id)
+ ));
$this->assertTrue(is_array($result));
$this->assertEqual($result['Aro']['parent_id'], 7);
@@ -363,9 +369,13 @@ function testAfterDelete() {
$this->assertEqual($node[1]['Aro']['parent_id'], null);
$Person->delete($id);
- $result = $this->Aro->find('first', array('conditions' => array('Aro.model' => 'AclPerson', 'Aro.foreign_key' => $id)));
+ $result = $this->Aro->find('first', array(
+ 'conditions' => array('Aro.model' => 'AclPerson', 'Aro.foreign_key' => $id)
+ ));
$this->assertTrue(empty($result));
- $result = $this->Aro->find('first', array('conditions' => array('Aro.model' => 'AclPerson', 'Aro.foreign_key' => 2)));
+ $result = $this->Aro->find('first', array(
+ 'conditions' => array('Aro.model' => 'AclPerson', 'Aro.foreign_key' => 2)
+ ));
$this->assertFalse(empty($result));
$data = array(
@@ -378,10 +388,14 @@ function testAfterDelete() {
$Person->save($data);
$id = $Person->id;
$Person->delete(2);
- $result = $this->Aro->find('first', array('conditions' => array('Aro.model' => 'AclPerson', 'Aro.foreign_key' => $id)));
+ $result = $this->Aro->find('first', array(
+ 'conditions' => array('Aro.model' => 'AclPerson', 'Aro.foreign_key' => $id)
+ ));
$this->assertTrue(empty($result));
- $result = $this->Aro->find('first', array('conditions' => array('Aro.model' => 'AclPerson', 'Aro.foreign_key' => 2)));
+ $result = $this->Aro->find('first', array(
+ 'conditions' => array('Aro.model' => 'AclPerson', 'Aro.foreign_key' => 2)
+ ));
$this->assertTrue(empty($result));
}

0 comments on commit ac9721d

Please sign in to comment.