1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 09:54:03 +00:00

Support extra tags

This commit is contained in:
Samuel Štancl 2021-05-26 13:02:20 +02:00
parent 21452f538b
commit 007a555d57
3 changed files with 41 additions and 0 deletions

View file

@ -82,3 +82,15 @@ test('thunks can be used as defaults', function () {
test('setting the defaults returns the manager instance', function () {
expect(seo()->title(default: 'foo'))->toBeInstanceOf(SEOManager::class);
});
test('meta tags can be added to the template', function () {
seo()->tag('fb:image', 'foo');
expect(meta())->toContain('<meta property="fb:image" content="foo" />');
});
test('raw tags can be added to the template', function () {
seo()->rawTag('<meta foo bar>');
expect(meta())->toContain('<meta foo bar>');
});