From 22c2df9fbff1089b7af3fbda8a883fa32e2cf024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20K=C3=B6string?= Date: Wed, 17 Jun 2015 18:06:38 +0200 Subject: [PATCH] Added Unittest --- test/Helper/HeadLinkTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/Helper/HeadLinkTest.php b/test/Helper/HeadLinkTest.php index 1469cf75..4ddf80cb 100644 --- a/test/Helper/HeadLinkTest.php +++ b/test/Helper/HeadLinkTest.php @@ -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()); + } }