Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix value in test to make it pass.

The `is_paid` column only accepts `INTEGER` values; when skipping the
state validation using a `STRING`, `PDO` throws an exception.
  • Loading branch information...
commit adb39433dcf84e9a58aa470ab8b6e09dc8b8f28c 1 parent 6c002a6
@jadb jadb authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Test/Case/Model/Behavior/StateableBehaviorTest.php
2  Test/Case/Model/Behavior/StateableBehaviorTest.php
@@ -126,7 +126,7 @@ public function testCallOnChange() {
// Do not validate `is_paid` state value.
$this->Invoice->id = 2;
- $result = $this->Invoice->changeIsPaid('paid', false);
+ $result = $this->Invoice->changeIsPaid(3, false);
$this->assertEqual($this->Invoice->id, 2);
Please sign in to comment.
Something went wrong with that request. Please try again.