Skip to content

Commit

Permalink
Update assertions, because of statamic/cms#11299.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Jan 13, 2025
1 parent 09b6707 commit f1336f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/MetaTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@ public function it_generates_social_image($viewType)

$response = $this->get('/about');
$response->assertSee("<h1>{$viewType}</h1>", false);
$response->assertSee('<meta property="og:image" content="http://cool-runnings.com/img/asset/YXNzZXRzL2ltZy9zdGV0c29uLmpwZw==/stetson.jpg?p=seo_pro_og&s=10304f0bafd3c45d82b477b775321d14" />', false);
$response->assertSee('<meta property="og:image" content="http://cool-runnings.com/img/asset/YXNzZXRzL2ltZy9zdGV0c29uLmpwZw/stetson.jpg?p=seo_pro_og&s=696081e7fca5b506e5eddaa60efe3f7d" />', false);
$response->assertSee('<meta property="og:image:width" content="1146" />', false);
$response->assertSee('<meta property="og:image:height" content="600" />', false);
$response->assertSee('<meta name="twitter:image" content="http://cool-runnings.com/img/asset/YXNzZXRzL2ltZy9zdGV0c29uLmpwZw==/stetson.jpg?p=seo_pro_twitter&s=96d8252d9346b1d7f299aea99b9b03a9" />', false);
$response->assertSee('<meta name="twitter:image" content="http://cool-runnings.com/img/asset/YXNzZXRzL2ltZy9zdGV0c29uLmpwZw/stetson.jpg?p=seo_pro_twitter&s=095c80594c864bedc5c4c2cb2c83ee1c" />', false);
}

/**
Expand All @@ -319,7 +319,7 @@ public function it_generates_social_image_with_custom_glide_presets($viewType)

$response = $this->get('/about');
$response->assertSee("<h1>{$viewType}</h1>", false);
$response->assertSee('<meta property="og:image" content="http://cool-runnings.com/img/asset/YXNzZXRzL2ltZy9zdGV0c29uLmpwZw==/stetson.jpg?p=seo_pro_og&s=10304f0bafd3c45d82b477b775321d14" />', false);
$response->assertSee('<meta property="og:image" content="http://cool-runnings.com/img/asset/YXNzZXRzL2ltZy9zdGV0c29uLmpwZw/stetson.jpg?p=seo_pro_og&s=696081e7fca5b506e5eddaa60efe3f7d" />', false);
$response->assertSee('<meta property="og:image:width" content="800" />', false);
$response->assertSee('<meta property="og:image:height" content="600" />', false);
}
Expand All @@ -343,7 +343,7 @@ public function it_generates_social_image_with_og_glide_preset_only($viewType)

$response = $this->get('/about');
$response->assertSee("<h1>{$viewType}</h1>", false);
$response->assertSee('<meta property="og:image" content="http://cool-runnings.com/img/asset/YXNzZXRzL2ltZy9zdGV0c29uLmpwZw==/stetson.jpg?p=seo_pro_og&s=10304f0bafd3c45d82b477b775321d14" />', false);
$response->assertSee('<meta property="og:image" content="http://cool-runnings.com/img/asset/YXNzZXRzL2ltZy9zdGV0c29uLmpwZw/stetson.jpg?p=seo_pro_og&s=696081e7fca5b506e5eddaa60efe3f7d" />', false);
$response->assertSee('<meta name="twitter:image" content="http://cool-runnings.com/assets/img/stetson.jpg" />', false);
$response->assertSee('<meta property="og:image:width" content="800" />', false);
$response->assertSee('<meta property="og:image:height" content="600" />', false);
Expand All @@ -369,7 +369,7 @@ public function it_generates_social_image_with_twitter_glide_preset_only($viewTy
$response = $this->get('/about');
$response->assertSee("<h1>{$viewType}</h1>", false);
$response->assertSee('<meta property="og:image" content="http://cool-runnings.com/assets/img/stetson.jpg" />', false);
$response->assertSee('<meta name="twitter:image" content="http://cool-runnings.com/img/asset/YXNzZXRzL2ltZy9zdGV0c29uLmpwZw==/stetson.jpg?p=seo_pro_twitter&s=96d8252d9346b1d7f299aea99b9b03a9" />', false);
$response->assertSee('<meta name="twitter:image" content="http://cool-runnings.com/img/asset/YXNzZXRzL2ltZy9zdGV0c29uLmpwZw/stetson.jpg?p=seo_pro_twitter&s=095c80594c864bedc5c4c2cb2c83ee1c" />', false);
}

/**
Expand Down

0 comments on commit f1336f3

Please sign in to comment.