From e8bcf0e98fe597b8debef103cd4509cdfe5bc915 Mon Sep 17 00:00:00 2001 From: "Ralph J. Smit" <59207045+ralphjsmit@users.noreply.github.com> Date: Thu, 6 Oct 2022 18:58:54 +0200 Subject: [PATCH] Fix tests --- tests/Feature/JSON-LD/ArticleTest.php | 2 +- tests/Unit/Schema/ArticleSchemaTest.php | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/Feature/JSON-LD/ArticleTest.php b/tests/Feature/JSON-LD/ArticleTest.php index cc6df13..4eaef75 100644 --- a/tests/Feature/JSON-LD/ArticleTest.php +++ b/tests/Feature/JSON-LD/ArticleTest.php @@ -47,7 +47,7 @@ '@id' => route('seo.test-page', ['page' => $page]), ], 'datePublished' => now()->subDays(2)->toIso8601String(), - 'dateUpdated' => now()->toIso8601String(), + 'dateModified' => now()->toIso8601String(), 'headline' => 'Test title', 'author' => [ [ diff --git a/tests/Unit/Schema/ArticleSchemaTest.php b/tests/Unit/Schema/ArticleSchemaTest.php index 4717331..d9f98d3 100644 --- a/tests/Unit/Schema/ArticleSchemaTest.php +++ b/tests/Unit/Schema/ArticleSchemaTest.php @@ -6,14 +6,14 @@ beforeEach(function () { $this->SEOData = new SEOData( - title : 'Test', - description : 'Description', - author : 'Ralph J. Smit', - image : 'https://example.com/image.jpg', - url : 'https://example.com/test', + title: 'Test', + description: 'Description', + author: 'Ralph J. Smit', + image: 'https://example.com/image.jpg', + url: 'https://example.com/test', published_time: now()->subDays(3), - modified_time : now(), - articleBody : '

Test

', + modified_time: now(), + articleBody: '

Test

', ); }); @@ -31,7 +31,7 @@ '@id' => 'https://example.com/test', ], 'datePublished' => now()->subDays(3)->toIso8601String(), - 'dateUpdated' => now()->toIso8601String(), + 'dateModified' => now()->toIso8601String(), 'headline' => 'Test', 'author' => [ '@type' => 'Person', @@ -63,7 +63,7 @@ '@id' => 'https://example.com/test', ], 'datePublished' => now()->subDays(3)->toIso8601String(), - 'dateUpdated' => now()->toIso8601String(), + 'dateModified' => now()->toIso8601String(), 'headline' => 'Test', 'author' => [ [