From d50c0341e6448ecd092d3122f9854f5390679edd Mon Sep 17 00:00:00 2001 From: puja Date: Thu, 6 Jun 2024 15:09:28 +0200 Subject: [PATCH] chnage contnets of the html files --- tests/resources/README.md | 2 +- .../resources/cookbook-issue-hello-fresh.html | 33 - tests/resources/cookbook-issue-marmiton.html | 146 +- .../resources/cookbook-issue-rezeptwelt.html | 1324 ++++++++++------- tests/resources/jsonld-article-zeit.html | 1 - tests/unit/MarkupUtilTest.php | 2 - 6 files changed, 902 insertions(+), 606 deletions(-) diff --git a/tests/resources/README.md b/tests/resources/README.md index c85a518..bd6b353 100644 --- a/tests/resources/README.md +++ b/tests/resources/README.md @@ -20,7 +20,7 @@ * `microdata-inline-website.html` - A basic website containing Microdata markup, inline with the body. -## Realted to other projects +## Related to other projects * `cookbook-issue-hello-fresh.html` - HTML pulled from hellofresh.de, which caused an issue in [nextcloud/cookbook](https://github.com/nextcloud/cookbook). See: https://github.com/nextcloud/cookbook/issues/1509. diff --git a/tests/resources/cookbook-issue-hello-fresh.html b/tests/resources/cookbook-issue-hello-fresh.html index eb95725..9f30305 100644 --- a/tests/resources/cookbook-issue-hello-fresh.html +++ b/tests/resources/cookbook-issue-hello-fresh.html @@ -2,39 +2,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/tests/resources/cookbook-issue-marmiton.html b/tests/resources/cookbook-issue-marmiton.html index 0d7c636..04f096e 100644 --- a/tests/resources/cookbook-issue-marmiton.html +++ b/tests/resources/cookbook-issue-marmiton.html @@ -1,57 +1,109 @@ - - - - - - - - Lasagnes à la bolognaise : Recette de Lasagnes à la bolognaise - - - - - - - - - - - - - + + + + - + - - - - - - - - - + { + "@context":"http://schema.org", + "@type":"WebPage", + "name":"Lasagnes la bolognaise ", + "description":"Recette Lasagnes", + "publisher":{ + "@type":"WebSite", + "name":"Marmiton" + }, + "lastReviewed":"2024-03-05T11:58:19+01:00", + "RelatedLink":[ + "https://www.example.aspx" + ] + } + - + diff --git a/tests/resources/cookbook-issue-rezeptwelt.html b/tests/resources/cookbook-issue-rezeptwelt.html index 52a9541..a99dd9b 100644 --- a/tests/resources/cookbook-issue-rezeptwelt.html +++ b/tests/resources/cookbook-issue-rezeptwelt.html @@ -1,547 +1,827 @@ - - - - - - - - - - - - - - - - - - - - -
-
-
- -
-
+ + +
-
-

- -
-
- - -
-

-
- - -
- - - - - -
-
+
+
+ Hier bist du: + +
+
-
- - -
-
-
-
-
+
+
+
+ +
+
+
+
+

+ +
-
  • 400 g Weißkohl, (äußere Blätter und Strunk entfernt)
  • 70 g Möhre, geschält
  • 1 Glas Miracel Whip, (kleines Glas mit 250 ml)
  • 3 Esslöffel Pflanzenöl
  • 1 Esslöffel Tafelessig, (weißer Essig)
  • 2 Esslöffel Zwiebel, gewürfelt
  • 50 g Zucker
  • 1 Prise Salz
- -
+ + +

+ +
-
+
+ + + + +
- -
  • -
    -
    - - -
    +
    +
  • +
    + + +
    +
    +
    +
    +
    +
    +
      +
    • 300 g Grüner Kohl, (äußere Blätter und Strunk entfernt)
    • +
    • 60 g Karotte, geschält
    • +
    • 1 Glas Miracle Whip, (kleines Glas mit 200 ml)
    • +
    • 2 Esslöffel Rapsöl
    • +
    • 2 Esslöffel Apfelessig
    • +
    • 3 Esslöffel Frühlingszwiebel, fein gehackt
    • +
    • 40 g Brauner Zucker
    • +
    • 1 Prise Meersalz
    • +
    +
    +
    - - -
    -
    -
    -
    -
    -
      Ein Top Rezept ! Perfekt auch als Grillbeilage ...
      -
    1. den Weisskohl und die geschälte Möhre grob in Stücke schneiden und auf 2 Etappen in den Mixtopf geben.

       

    2. -
    3. -
    4. den Coleslaw mit Folie oder Deckel abdecken und über Nacht ziehen lassen. Am nächsten Tag gut durchrühren und geniessen.

       

    -
    - -
    +
  • +
    +
    + + +
    +
    +
  • -
    -
    +
    +
    +
    +
    +
    +
      +
      Ein tolles Rezept
      + +
      + + +
    1. + +

      Den Weißkohl und die geschälte Möhre

      +

       

      +
      +
    2. +
      +
      + + +
    3. +
      +
      + + +
    4. +
      +
      + + +
    5. + +

      Den Cole Slaw mit Folie oder Deckel abdecken.

      +

       

      +
      +
    6. +
      +
    +
    +
    +
    +
    + +
    -
    -
      +
      +
        +
        +
        + + + + +
        +
        +
        +
        + + + + +
        +
        + +
        +
        + + + + +
        +
        + +
        +
        + + + -
        - -
        - - - -
        -
        -
        - -
        - - - -
        -
        +
        +
        + +
        +
        - -
        - - - -
        -
        - -
        - -
        - - - -
        -
        - -
        - -
        - - - -
        -
        - -
        - -
        - - - -
        -
        + > + + + -
        - -
        - - - -
        -
        - -
        - -
        - - - -
        -
        +
        +
      + +
      +
      + + + -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      +
      +
      + +
      +
      + + + -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      +
      +
      + +
      +
      + + + + +
      +
      + +
      +
      - -
      - - - -
      -
      - Rote Bete Carpaccio a la Katja - - - Fenchelsalat mit Apfel Rohkost - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      + > + + + + +
      +
      -
    - - -
    -
    - -
    - -
    -
      -
      + +
      +
      + + + + +
      +
      + +
      +
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      + > + + + + +
      +
      + +
      +
      + + + + +
      +
      + +
      +
      + + + -
      - -
      - - - -
      -
      -
      - -
      - - - -
      -
      -
      - -
      - - - -
      -
      +
      +
      + +
      +
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      + > + + + + +
      +
      + + Rote Bete Carpaccio a la Katja + + + + Fenchelsalat mit Apfel Rohkost + +
      +
      + + + -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      - -
      - -
      - - - -
      -
      -
      - -
    +
    +
    + +
    +
    + + + +
    +
    + +
    +
    + + + +
    +
    + +
    - -
    - - - - +
    +
    +
      +
      +
      + +
      +
      +
    +
    +
    + + + + + diff --git a/tests/resources/jsonld-article-zeit.html b/tests/resources/jsonld-article-zeit.html index cf8fc7b..2cb9ff7 100644 --- a/tests/resources/jsonld-article-zeit.html +++ b/tests/resources/jsonld-article-zeit.html @@ -121,7 +121,6 @@ "image": [ { "@type": "ImageObject", - "url": "https://img.zeit.de/2023/20/schon-wieder-krimi-bild-3/wide__1280x720", "width": 1280, "height": 720, "copyrightHolder": {"@type": "Person", "name": "\u00a9\u00a0Illustration: Jos\u00e9 Navarro f\u00fcr DIE ZEIT"} diff --git a/tests/unit/MarkupUtilTest.php b/tests/unit/MarkupUtilTest.php index fb9b92e..a1340a1 100644 --- a/tests/unit/MarkupUtilTest.php +++ b/tests/unit/MarkupUtilTest.php @@ -252,8 +252,6 @@ public function testJsonLdFromRezeptwelt(): void $this->assertIsArray($this->result); $this->assertCount(2, $this->result); - - $this->assertIsArray($this->result[1]); $this->assertArrayHasKey('@type', $this->result[1]); $this->assertEquals('Recipe', $this->result[1]["@type"]);