mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 09:54:03 +00:00
Fix raw tag overriding
This commit is contained in:
parent
713e574790
commit
5415e86927
2 changed files with 4 additions and 2 deletions
|
|
@ -195,7 +195,7 @@ class SEOManager
|
||||||
{
|
{
|
||||||
$tag ??= $key;
|
$tag ??= $key;
|
||||||
|
|
||||||
$this->tags[$tag] = $tag;
|
$this->tags[$key] = $tag;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,9 @@ test('raw tags can be overridden', function () {
|
||||||
seo()->rawTag('foo', '<meta abc>');
|
seo()->rawTag('foo', '<meta abc>');
|
||||||
seo()->rawTag('foo', '<meta def>');
|
seo()->rawTag('foo', '<meta def>');
|
||||||
|
|
||||||
expect(meta())->toContain('<meta abc>');
|
expect(meta())
|
||||||
|
->not()->toContain('<meta abc>')
|
||||||
|
->toContain('<meta def>');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('canonical url is not included by default', function () {
|
test('canonical url is not included by default', function () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue