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

Add type()

This commit is contained in:
Samuel Štancl 2022-03-30 00:50:40 +02:00
parent 1450ce17a7
commit 94be0f7e06
3 changed files with 11 additions and 7 deletions

View file

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