Browse Source

Added cascadeCallbacks accessor/mutator test

Robert 11 years ago
parent
commit
709cbab795
1 changed files with 11 additions and 0 deletions
  1. 11 0
      tests/TestCase/ORM/AssociationTest.php

+ 11 - 0
tests/TestCase/ORM/AssociationTest.php

@@ -92,6 +92,17 @@ class AssociationTest extends \Cake\TestSuite\TestCase {
 	}
 
 /**
+ * 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
  *
  * @return void