Browse Source

Fix label names.

mscherer 6 years ago
parent
commit
c486791270
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tests/TestCase/View/Helper/HtmlHelperTest.php

+ 4 - 4
tests/TestCase/View/Helper/HtmlHelperTest.php

@@ -341,12 +341,12 @@ class HtmlHelperTest extends TestCase
      */
     public function testLinkFromPath(): void
     {
-        $result = $this->Html->linkFromPath('Home', 'Articles::index');
-        $expected = '<a href="/articles">Home</a>';
+        $result = $this->Html->linkFromPath('Index', 'Articles::index');
+        $expected = '<a href="/articles">Index</a>';
         $this->assertSame($result, $expected);
 
-        $result = $this->Html->linkFromPath('Home', 'Articles::view', [3]);
-        $expected = '<a href="/articles/view/3">Home</a>';
+        $result = $this->Html->linkFromPath('View', 'Articles::view', [3]);
+        $expected = '<a href="/articles/view/3">View</a>';
         $this->assertSame($result, $expected);
     }