1
0
Fork 0
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:
Samuel Štancl 2021-05-26 21:17:58 +02:00
parent 0ebc50cad9
commit 5729da6e6d
3 changed files with 14 additions and 4 deletions

View file

@ -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')