@@ -122,7 +122,7 @@ public function it_doesnt_generate_meta_when_seo_is_disabled_on_entry($viewType)
122122 {
123123 $ this
124124 ->prepareViews ($ viewType )
125- ->setSeoOnEntry (Entry::findBySlug ( ' about ' , ' pages ' ), false );
125+ ->setSeoOnEntry (Entry::findByUri ( ' / about ' ), false );
126126
127127 $ response = $ this ->get ('/about ' );
128128 $ response ->assertSee ("<h1> {$ viewType }</h1> " , false );
@@ -165,7 +165,7 @@ public function it_uses_cascade_to_generate_meta($viewType)
165165 'title ' => 'Aboot ' ,
166166 'site_name_separator ' => '> ' ,
167167 ])
168- ->setSeoOnEntry (Entry::findBySlug ( ' about ' , ' pages ' ), [
168+ ->setSeoOnEntry (Entry::findByUri ( ' / about ' ), [
169169 'site_name_position ' => 'before ' ,
170170 'site_name_separator ' => '-- ' ,
171171 ]);
@@ -183,7 +183,7 @@ public function it_generates_sanitized_title($viewType)
183183 {
184184 $ this
185185 ->prepareViews ($ viewType )
186- ->setSeoOnEntry (Entry::findBySlug ( ' about ' , ' pages ' ), [
186+ ->setSeoOnEntry (Entry::findByUri ( ' / about ' ), [
187187 'title ' => " It's a me, <b>Mario</b>! " ,
188188 'site_name ' => ' Cool "Runnings" ' ,
189189 'site_name_position ' => 'before ' ,
@@ -204,7 +204,7 @@ public function it_generates_sanitized_description($viewType)
204204 {
205205 $ this
206206 ->prepareViews ($ viewType )
207- ->setSeoOnEntry (Entry::findBySlug ( ' about ' , ' pages ' ), [
207+ ->setSeoOnEntry (Entry::findByUri ( ' / about ' ), [
208208 'description ' => " It's a me, <b>Mario</b>! " ,
209209 ]);
210210
@@ -240,7 +240,7 @@ public function it_generates_twitter_handle_meta($viewType)
240240 ->setSeoInSiteDefaults ([
241241 'twitter_handle ' => ' itsmario85 ' ,
242242 ])
243- ->setSeoOnEntry (Entry::findBySlug ( ' about ' , ' pages ' ), [
243+ ->setSeoOnEntry (Entry::findByUri ( ' / about ' ), [
244244 'twitter_handle ' => '@itsluigi85 ' ,
245245 ]);
246246
@@ -263,7 +263,7 @@ public function it_generates_social_image($viewType)
263263
264264 $ this
265265 ->prepareViews ($ viewType )
266- ->setSeoOnEntry (Entry::findBySlug ( ' about ' , ' pages ' ), [
266+ ->setSeoOnEntry (Entry::findByUri ( ' / about ' ), [
267267 'image ' => 'img/stetson.jpg ' ,
268268 ]);
269269
@@ -286,7 +286,7 @@ public function it_generates_social_image_with_custom_glide_presets($viewType)
286286
287287 $ this
288288 ->prepareViews ($ viewType )
289- ->setSeoOnEntry (Entry::findBySlug ( ' about ' , ' pages ' ), [
289+ ->setSeoOnEntry (Entry::findByUri ( ' / about ' ), [
290290 'image ' => 'img/stetson.jpg ' ,
291291 ]);
292292
@@ -308,7 +308,7 @@ public function it_generates_social_image_with_og_glide_preset_only($viewType)
308308
309309 $ this
310310 ->prepareViews ($ viewType )
311- ->setSeoOnEntry (Entry::findBySlug ( ' about ' , ' pages ' ), [
311+ ->setSeoOnEntry (Entry::findByUri ( ' / about ' ), [
312312 'image ' => 'img/stetson.jpg ' ,
313313 ]);
314314
@@ -331,7 +331,7 @@ public function it_generates_social_image_with_twitter_glide_preset_only($viewTy
331331
332332 $ this
333333 ->prepareViews ($ viewType )
334- ->setSeoOnEntry (Entry::findBySlug ( ' about ' , ' pages ' ), [
334+ ->setSeoOnEntry (Entry::findByUri ( ' / about ' ), [
335335 'image ' => 'img/stetson.jpg ' ,
336336 ]);
337337
@@ -488,7 +488,7 @@ public function it_generates_canonical_url_meta_with_custom_url($viewType)
488488 {
489489 $ this
490490 ->prepareViews ($ viewType )
491- ->setSeoOnEntry (Entry::findBySlug ( ' about ' , ' pages ' ), [
491+ ->setSeoOnEntry (Entry::findByUri ( ' / about ' ), [
492492 'canonical_url ' => 'https://hot-walkings.com/pages/aboot ' ,
493493 ]);
494494
@@ -505,7 +505,7 @@ public function it_applies_pagination_to_custom_canonical_url_on_same_domain($vi
505505 {
506506 $ this
507507 ->prepareViews ($ viewType )
508- ->setSeoOnEntry (Entry::findBySlug ( ' about ' , ' pages ' ), [
508+ ->setSeoOnEntry (Entry::findByUri ( ' / about ' ), [
509509 'canonical_url ' => 'http://cool-runnings.com/pages/aboot ' ,
510510 ]);
511511
@@ -522,7 +522,7 @@ public function it_doesnt_apply_pagination_to_external_custom_canonical_url($vie
522522 {
523523 $ this
524524 ->prepareViews ($ viewType )
525- ->setSeoOnEntry (Entry::findBySlug ( ' about ' , ' pages ' ), [
525+ ->setSeoOnEntry (Entry::findByUri ( ' / about ' ), [
526526 'canonical_url ' => 'https://hot-walkings.com/pages/aboot ' ,
527527 ]);
528528
0 commit comments