Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphjsmit committed Oct 6, 2022
1 parent f0c2493 commit e8bcf0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/Feature/JSON-LD/ArticleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
[
Expand Down
18 changes: 9 additions & 9 deletions tests/Unit/Schema/ArticleSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 : '<p>Test</p>',
modified_time: now(),
articleBody: '<p>Test</p>',
);
});

Expand All @@ -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',
Expand Down Expand Up @@ -63,7 +63,7 @@
'@id' => 'https://example.com/test',
],
'datePublished' => now()->subDays(3)->toIso8601String(),
'dateUpdated' => now()->toIso8601String(),
'dateModified' => now()->toIso8601String(),
'headline' => 'Test',
'author' => [
[
Expand Down

0 comments on commit e8bcf0e

Please sign in to comment.