Skip to content

Commit

Permalink
Added cascadeCallbacks accessor/mutator test
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpustulka committed Aug 22, 2014
1 parent 9085ebb commit 709cbab
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/TestCase/ORM/AssociationTest.php
Expand Up @@ -91,6 +91,17 @@ public function testName() {
$this->assertEquals('Bar', $this->association->name());
}

/**
* Tests that cascadeCallbacks() returns the correct configured value
*
* @return void
*/
public function testCascadeCallbacks() {
$this->assertSame(false, $this->association->cascadeCallbacks());
$this->association->cascadeCallbacks(true);
$this->assertSame(true, $this->association->cascadeCallbacks());
}

/**
* Tests that name() returns the correct configured value
*
Expand Down

0 comments on commit 709cbab

Please sign in to comment.