X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fbookmark%2FLinkUtilsTest.php;fp=tests%2Fbookmark%2FLinkUtilsTest.php;h=46a7f1fe7a4fd42b749bee30bd455d41ccdc107a;hb=8ed5fbef8f2a5e666f80be0c38930b92672d351a;hp=ddab4e3caebd0e7070273738054f9f58d0821aa0;hpb=b01b3b83a71044db833b21203dc510f9c45ad6fc;p=github%2Fshaarli%2FShaarli.git diff --git a/tests/bookmark/LinkUtilsTest.php b/tests/bookmark/LinkUtilsTest.php index ddab4e3c..46a7f1fe 100644 --- a/tests/bookmark/LinkUtilsTest.php +++ b/tests/bookmark/LinkUtilsTest.php @@ -245,6 +245,16 @@ class LinkUtilsTest extends TestCase $this->assertFalse(html_extract_tag('description', $html)); } + public function testHtmlExtractDescriptionFromGoogleRealCase(): void + { + $html = 'id="gsr">'. + ''. + 'assertSame('Bonnes fêtes de fin d\'année ! #GoogleDoodle', html_extract_tag('description', $html)); + } + /** * Test the header callback with valid value */