Browse Source

fixed error in BitmaskedBehavior unit test

Val Bancer 9 years ago
parent
commit
eeede883f1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Test/Case/Model/Behavior/BitmaskedBehaviorTest.php

+ 1 - 0
Test/Case/Model/Behavior/BitmaskedBehaviorTest.php

@@ -110,6 +110,7 @@ class BitmaskedBehaviorTest extends MyCakeTestCase {
 	 * Assert that you can manually trigger "notEmpty" rule with null instead of 0 for "not null" db fields
 	 */
 	public function testSaveWithDefaultValue() {
+		$this->Comment->Behaviors->unload('Tools.Bitmasked');
 		$this->Comment->Behaviors->load('Tools.Bitmasked', ['mappedField' => 'statuses', 'defaultValue' => '']);
 		$data = [
 			'comment' => 'test save',