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

Allow setting tag('og:title', ...)

This commit is contained in:
Samuel Štancl 2022-03-23 19:19:52 +01:00
parent 2480e532bf
commit f6bb4e8f64
4 changed files with 34 additions and 3 deletions

View file

@ -127,3 +127,12 @@ test('canonical url can be changed', function () {
->toContain('<meta property="og:url" content="http://foo.com/bar" />')
->toContain('<link rel="canonical" href="http://foo.com/bar" />');
});
test('og:title can be overridden as a tag', function () {
seo()->title('foo')
->tag('og:title', 'bar');
expect(meta())
->toContain('<title>foo</title>')
->toContain('<meta property="og:title" content="bar" />');
});