artesaos / seotools

SEO Tools for Laravel
MIT License
3.12k stars 506 forks source link

Bug - `SeoTools::setTitle` not setting `JsonLdMulti` title #283

Closed J-Brk closed 2 years ago

J-Brk commented 2 years ago

What steps will reproduce the problem?

Use SeoTools::setTitle() or run the unit tests

What is the expected result?

The title/name to be set correctly in the JsonLD

What do you get instead?

The default title

1) Artesaos\SEOTools\Tests\SEOToolsTest::test_set_title
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'[..]<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebPage","name":"Kamehamehaaaaaaa","description":"For those who helped create the Genki Dama"}</script>'
+'[..]<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebPage","name":"Over 9000 Thousand!","description":"For those who helped create the Genki Dama"}</script>'

Additional info

Q A
This Package Version v0.22.1