mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 09:54:03 +00:00
Support keys for rawTag()
This commit is contained in:
parent
0ebc50cad9
commit
5729da6e6d
3 changed files with 14 additions and 4 deletions
|
|
@ -90,11 +90,18 @@ test('meta tags can be added to the template', function () {
|
|||
});
|
||||
|
||||
test('raw tags can be added to the template', function () {
|
||||
seo()->rawTag('<meta foo bar>');
|
||||
seo()->rawTag('foo', '<meta foo bar>');
|
||||
|
||||
expect(meta())->toContain('<meta foo bar>');
|
||||
});
|
||||
|
||||
test('raw tags can be overridden', function () {
|
||||
seo()->rawTag('foo', '<meta abc>');
|
||||
seo()->rawTag('foo', '<meta def>');
|
||||
|
||||
expect(meta())->toContain('<meta abc>');
|
||||
});
|
||||
|
||||
test('canonical url is not included by default', function () {
|
||||
expect(meta())
|
||||
->not()->toContain('og:url')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue