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