artesaos/seotools

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

J-Brk opened this issue · 0 comments

J-Brk commented

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