mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 01:44:03 +00:00
Support extra tags
This commit is contained in:
parent
21452f538b
commit
007a555d57
3 changed files with 41 additions and 0 deletions
|
|
@ -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>');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue