Browse Source

Update FormHelperTest.php

Manuel1948 9 years ago
parent
commit
965abd055e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/View/Helper/FormHelperTest.php

+ 2 - 2
tests/TestCase/View/Helper/FormHelperTest.php

@@ -7375,7 +7375,7 @@ class FormHelperTest extends TestCase
         $result = $this->Form->postLink(
             'Delete',
             '/posts/delete/1',
-            ['escape' => false, 'confirm' => "'Confirm'\n this \"deletion\"?"]
+            ['escape' => false, 'confirm' => "'Confirm'\nthis \"deletion\"?"]
         );
         $expected = [
             'form' => [
@@ -7384,7 +7384,7 @@ class FormHelperTest extends TestCase
             ],
             'input' => ['type' => 'hidden', 'name' => '_method', 'value' => 'POST'],
             '/form',
-            'a' => ['href' => '#', 'onclick' => "preg:/if \(confirm\("'Confirm'\\\\n this \\\"deletion\\\"\?"\)\) \{ document\.post_\w+\.submit\(\); \} event\.returnValue = false; return false;/"],
+            'a' => ['href' => '#', 'onclick' => "preg:/if \(confirm\("'Confirm'\\\\nthis \\\"deletion\\\"\?"\)\) \{ document\.post_\w+\.submit\(\); \} event\.returnValue = false; return false;/"],
             'Delete',
             '/a'
         ];