diff --git a/src/ContextTypes/WebSite.php b/src/ContextTypes/WebSite.php new file mode 100644 index 0000000..8ae51d2 --- /dev/null +++ b/src/ContextTypes/WebSite.php @@ -0,0 +1,21 @@ + null, + 'headline' => null, + 'image' => null, + 'name' => null, + 'url' => null, + 'keywords' => null, + 'sameAs' => null, + ]; +} \ No newline at end of file diff --git a/tests/ContextTypes/WebSiteTest.php b/tests/ContextTypes/WebSiteTest.php new file mode 100644 index 0000000..184a552 --- /dev/null +++ b/tests/ContextTypes/WebSiteTest.php @@ -0,0 +1,33 @@ + 'The subject matter of the content.', + 'headline' => 'Headline of the article.', + 'image' => 'https://og.github.com/mark/github-mark@1200x630.png', + 'name' => 'The name of the item.', + 'url' => 'https://schema.org/WebSite', + 'keywords' => 'about,headline,image,name,url', + 'sameAs' => 'https://schema.org/sameAs', + ]; + + /** + * @test + */ + public function shouldGetProperties() + { + $context = $this->make(); + + $this->assertEquals(array_merge([ + '@context' => 'http://schema.org', + '@type' => 'WebSite', + ], $this->attributes), $context->getProperties()); + } +} \ No newline at end of file