mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 09:54:03 +00:00
og:type overriding
This commit is contained in:
parent
f6bb4e8f64
commit
1450ce17a7
3 changed files with 17 additions and 7 deletions
|
|
@ -128,7 +128,7 @@ test('canonical url can be changed', function () {
|
|||
->toContain('<link rel="canonical" href="http://foo.com/bar" />');
|
||||
});
|
||||
|
||||
test('og:title can be overridden as a tag', function () {
|
||||
test('og:title can be overridden using a tag', function () {
|
||||
seo()->title('foo')
|
||||
->tag('og:title', 'bar');
|
||||
|
||||
|
|
@ -136,3 +136,11 @@ test('og:title can be overridden as a tag', function () {
|
|||
->toContain('<title>foo</title>')
|
||||
->toContain('<meta property="og:title" content="bar" />');
|
||||
});
|
||||
|
||||
test('og:type can be overridden using a tag', function () {
|
||||
expect(meta())->toContain('<meta property="og:type" content="website" />'); // default
|
||||
|
||||
seo()->tag('og:type', 'foo');
|
||||
|
||||
expect(meta())->toContain('<meta property="og:type" content="foo" />'); // overridden
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue