Permalink
Browse files

Fix failing test.

Quote encoding in confirm handlers has changed in 2.4. Update the
relevant test.
  • Loading branch information...
1 parent ceb35ac commit 42feb8dff63cecd7bac4278e8a271369d573de8a @markstory markstory committed Aug 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
@@ -7092,7 +7092,7 @@ public function testPostLink() {
),
'input' => array('type' => 'hidden', 'name' => '_method', 'value' => 'POST'),
'/form',
- 'a' => array('class' => 'btn btn-danger', 'href' => '#', 'onclick' => 'preg:/if \(confirm\(\'Confirm thing\'\)\) \{ document\.post_\w+\.submit\(\); \} event\.returnValue = false; return false;/'),
+ 'a' => array('class' => 'btn btn-danger', 'href' => '#', 'onclick' => 'preg:/if \(confirm\(\&quot\;Confirm thing\&quot\;\)\) \{ document\.post_\w+\.submit\(\); \} event\.returnValue = false; return false;/'),
'/a'
));
}

0 comments on commit 42feb8d

Please sign in to comment.