1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 09:54:03 +00:00
This commit is contained in:
Samuel Štancl 2021-05-24 10:53:00 +02:00
parent 051a32575c
commit b12c9ecb55
21 changed files with 750 additions and 86 deletions

20
tests/Pest/HelperTest.php Normal file
View file

@ -0,0 +1,20 @@
<?php
use ArchTech\SEO\SEOManager;
test('the seo helper returns a SEOManager instance when no arguments are passed', function () {
expect(seo())->toBeInstanceOf(SEOManager::class);
});
test('the seo helper returns a value when an argument is passed', function () {
seo()->title('foo');
expect(seo('title'))->toBe('foo');
});
test('the seo helper accepts an array of key-value pairs', function () {
seo(['foo' => 'bar', 'abc' => 'xyz']);
expect(seo('foo'))->toBe('bar');
expect(seo('abc'))->toBe('xyz');
});