1
0
Fork 0
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:
Sven 2023-03-02 23:21:02 +01:00
parent 169600dc2d
commit 22741d8a04
No known key found for this signature in database
GPG key ID: CDBC5EB751FC92EC
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" />');
});