mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 09:54:03 +00:00
finished
This commit is contained in:
parent
051a32575c
commit
b12c9ecb55
21 changed files with 750 additions and 86 deletions
20
tests/Pest/HelperTest.php
Normal file
20
tests/Pest/HelperTest.php
Normal 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');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue