mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 09:54:03 +00:00
Make flipp use raw values
This commit is contained in:
parent
9cebfec4c8
commit
ab1e01b066
3 changed files with 33 additions and 3 deletions
|
|
@ -19,3 +19,12 @@ test('modifiers are not applied on default values', function () {
|
|||
|
||||
expect(seo('title'))->toBe('ArchTech — Web development agency');
|
||||
});
|
||||
|
||||
test('modifiers can be bypassed by using the raw method', function () {
|
||||
seo()->title(modify: fn (string $title) => $title . ' | ArchTech');
|
||||
|
||||
seo()->title('About us');
|
||||
|
||||
expect(seo()->get('title'))->toBe('About us | ArchTech');
|
||||
expect(seo()->raw('title'))->toBe('About us');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue