Skip to content

Commit

Permalink
Add test for Html->meta()
Browse files Browse the repository at this point in the history
Add test for previously uncovered use cases.

Refs #7616
  • Loading branch information
markstory committed Oct 30, 2015
1 parent e32c5b2 commit a448f49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/TestCase/View/Helper/HtmlHelperTest.php
Expand Up @@ -1621,6 +1621,12 @@ public function testMeta()
'meta' => ['property' => 'og:site_name', 'content' => 'CakePHP']
];
$this->assertHtml($expected, $result);

$result = $this->Html->meta(['link' => 'http://example.com/manifest', 'rel' => 'manifest']);
$expected = [
'link' => ['href' => 'http://example.com/manifest', 'rel' => 'manifest']
];
$this->assertHtml($expected, $result);
}

/**
Expand Down

0 comments on commit a448f49

Please sign in to comment.