ソースを参照

Fix failing tests.

Mark Story 7 年 前
コミット
f9928c0183

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

@@ -4222,7 +4222,7 @@ class FormHelperTest extends TestCase
             '*/div',
             '/fieldset',
         ];
-        $this->assertHtml($expected, $result, 'A falsey value (array) should not remove the input');
+        $this->assertHtml($expected, $result, true);
     }
 
     /**

+ 0 - 3
tests/TestCase/View/Helper/HtmlHelperTest.php

@@ -1868,9 +1868,6 @@ class HtmlHelperTest extends TestCase
      */
     public function testTag()
     {
-        $result = $this->Html->tag('div');
-        $this->assertHtml('<div', $result);
-
         $result = $this->Html->tag('div', 'text');
         $this->assertHtml(['<div', 'text', '/div'], $result);
 

+ 1 - 1
tests/TestCase/View/Helper/UrlHelperTest.php

@@ -254,7 +254,7 @@ class UrlHelperTest extends TestCase
 
         $data = 'data:image/png;base64,<evil>';
         $result = $this->Helper->assetUrl($data);
-        $this->assertHtml(h($data), $result);
+        $this->assertSame(h($data), $result);
     }
 
     /**