Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/5'
Browse files Browse the repository at this point in the history
Close #5
  • Loading branch information
weierophinney committed Jun 23, 2015
2 parents 14319a0 + 7ab473d commit d2a0424
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ All notable changes to this project will be documented in this file, in reverse

### Added

- Nothing.
- [#5](https://github.com/zendframework/zend-view/pull/5) adds support for the
`itemprop` attribute in the `headLink()` view helper.

### Deprecated

Expand Down
3 changes: 2 additions & 1 deletion src/Helper/HeadLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ class HeadLink extends Placeholder\Container\AbstractStandalone
'sizes',
'type',
'title',
'extras'
'extras',
'itemprop'
];

/**
Expand Down
6 changes: 6 additions & 0 deletions test/Helper/HeadLinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,4 +445,10 @@ public function testSizesAttributeIsSupported()
$this->helper->appendStylesheet(['rel' => 'icon', 'href' => '/bar/baz', 'sizes' => '123x456']);
$this->assertContains('sizes="123x456"', $this->helper->toString());
}

public function testItempropAttributeIsSupported()
{
$this->helper->prependAlternate(['itemprop' => 'url', 'href' => '/bar/baz', 'rel' => 'canonical']);
$this->assertContains('itemprop="url"', $this->helper->toString());
}
}

0 comments on commit d2a0424

Please sign in to comment.