mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 09:54:03 +00:00
Add Previewify image provider (#20)
* Add previewify image provider * feat: support for setting image with the @seo blade tag (resolves #22)
This commit is contained in:
parent
9ce6843879
commit
cf8ec8d3ae
6 changed files with 162 additions and 7 deletions
|
|
@ -68,3 +68,10 @@ test('flipp uses the raw title and description', function () {
|
|||
->toContain('s.useflipp.com/abcdefg')
|
||||
->toContain(base64_encode(json_encode(['title' => 'foo', 'description' => 'bar'])));
|
||||
});
|
||||
|
||||
test('the @seo helper can be used for setting a flipp image', function () {
|
||||
seo()->flipp('blog', 'abcdefg');
|
||||
blade("@seo(['flipp' => ['blog', ['title' => 'abc', 'excerpt' => 'def']]])");
|
||||
|
||||
expect(seo('image'))->toContain('s.useflipp.com/abcdefg');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue