Skip to content

Commit

Permalink
Merge branch 'rjs/laravel-12' of https://github.com/ralphjsmit/larave…
Browse files Browse the repository at this point in the history
…l-seo into rjs/laravel-12
  • Loading branch information
ralphjsmit committed Feb 25, 2025
2 parents 26d10ff + 8ea4e1f commit 3150d81
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions tests/Feature/JSON-LD/ArticleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
});

it('does not render by default the JSON-LD Schema markup: Article', function () {
get(route('seo.test-plain'))
->assertDontSee('"application/ld+json"')
->assertDontSee('"@type": "Article"');
});
get(route('seo.test-plain'))
->assertDontSee('"application/ld+json"')
->assertDontSee('"@type": "Article"');
});

it('can correctly render the JSON-LD Schema markup: Article', function () {
$page = Page::create([
Expand Down
8 changes: 4 additions & 4 deletions tests/Feature/JSON-LD/BreadcrumbListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
use function Pest\Laravel\get;

it('does not render by default the JSON-LD Schema markup: BreadcrumbList', function () {
get(route('seo.test-plain'))
->assertDontSee('"application/ld+json"')
->assertDontSee('"@type": "BreadcrumbList"');
});
get(route('seo.test-plain'))
->assertDontSee('"application/ld+json"')
->assertDontSee('"@type": "BreadcrumbList"');
});

it('can correctly render the JSON-LD Schema markup: BreadcrumbList', function () {
config()->set('seo.title.suffix', ' | Laravel SEO');
Expand Down
8 changes: 4 additions & 4 deletions tests/Feature/JSON-LD/FaqPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
use function Pest\Laravel\get;

it('does not render by default the JSON-LD Schema markup: FaqPageTest', function () {
get(route('seo.test-plain'))
->assertDontSee('"application/ld+json"')
->assertDontSee('"@type": "FAQPage"');
});
get(route('seo.test-plain'))
->assertDontSee('"application/ld+json"')
->assertDontSee('"@type": "FAQPage"');
});

it('can correctly render the JSON-LD Schema markup: FaqPageTest', function () {
config()->set('seo.title.suffix', ' | Laravel SEO');
Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/Tags/AlternateTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
use function Pest\Laravel\get;

it('will not display the aternates tags if there isn\'t any alternate', function () {
get(route('seo.test-plain'))
->assertDontSee('alternate');
});
get(route('seo.test-plain'))
->assertDontSee('alternate');
});

it('will display the alternates links if the associated SEO model has alternates links', function () {
$page = Page::create();
Expand Down

0 comments on commit 3150d81

Please sign in to comment.