Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix glide related test failures #214

Merged
merged 1 commit into from Apr 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/MetaTagTest.php
Expand Up @@ -3,6 +3,7 @@
namespace Tests;

use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Facades\Artisan;
use Statamic\Facades\Blink;
use Statamic\Facades\Collection;
use Statamic\Facades\Config;
Expand Down Expand Up @@ -198,6 +199,8 @@ public function it_generates_social_image($metaProvider)
*/
public function it_generates_social_image_with_custom_glide_presets($metaProvider)
{
Artisan::call('statamic:glide:clear');

$this->setSeoOnEntry(Entry::findBySlug('about', 'pages'), [
'image' => 'img/stetson.jpg',
]);
Expand All @@ -220,6 +223,8 @@ public function it_generates_social_image_with_custom_glide_presets($metaProvide
*/
public function it_generates_social_image_with_og_glide_preset_only($metaProvider)
{
Artisan::call('statamic:glide:clear');

$this->setSeoOnEntry(Entry::findBySlug('about', 'pages'), [
'image' => 'img/stetson.jpg',
]);
Expand Down Expand Up @@ -247,6 +252,8 @@ public function it_generates_social_image_with_og_glide_preset_only($metaProvide
*/
public function it_generates_social_image_with_twitter_glide_preset_only($metaProvider)
{
Artisan::call('statamic:glide:clear');

$this->setSeoOnEntry(Entry::findBySlug('about', 'pages'), [
'image' => 'img/stetson.jpg',
]);
Expand Down