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

Adds support for og:locale (#28)

This commit is contained in:
Sven 2023-03-03 14:19:18 +01:00 committed by GitHub
parent 169600dc2d
commit 3a17c8ee11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 1 deletions

View file

@ -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" />');
});