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

Commit 22c2df9

Browse files
Added Unittest
1 parent d881871 commit 22c2df9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Helper/HeadLinkTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,4 +445,10 @@ public function testSizesAttributeIsSupported()
445445
$this->helper->appendStylesheet(['rel' => 'icon', 'href' => '/bar/baz', 'sizes' => '123x456']);
446446
$this->assertContains('sizes="123x456"', $this->helper->toString());
447447
}
448+
449+
public function testItempropAttributeIsSupported()
450+
{
451+
$this->helper->prependAlternate(['itemprop' => 'url', 'href' => '/bar/baz', 'rel' => 'canonical']);
452+
$this->assertContains('itemprop="url"', $this->helper->toString());
453+
}
448454
}

0 commit comments

Comments
 (0)