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

Make default & modifier setters chainable

This commit is contained in:
Samuel Štancl 2021-05-24 18:29:07 +02:00
parent 5732fc8a57
commit 8b6e049830
2 changed files with 6 additions and 0 deletions

View file

@ -78,3 +78,7 @@ test('thunks can be used as defaults', function () {
expect(seo('title'))->toBe('bar');
});
test('setting the defaults returns the manager instance', function () {
expect(seo()->title(default: 'foo'))->toBeInstanceOf(SEOManager::class);
});