mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 18:04:03 +00:00
Adds support for og:locale
This commit is contained in:
parent
169600dc2d
commit
22741d8a04
4 changed files with 26 additions and 1 deletions
|
|
@ -146,3 +146,14 @@ test('type can be overridden using the type method', function () {
|
|||
->toContain('<meta property="og:type" content="foo" />') // overridden
|
||||
->not()->toContain('website');
|
||||
});
|
||||
|
||||
test('og:locale is not included by default', function () {
|
||||
expect(meta())
|
||||
->not()->toContain('og:locale');
|
||||
});
|
||||
|
||||
test('og:locale can be added to the template', function () {
|
||||
seo()->locale('de_DE');
|
||||
|
||||
expect(meta())->toContain('<meta property="og:locale" content="de_DE" />');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue