Skip to content

Commit 9a94dd1

Browse files
committed
Fix project page
1 parent 728f0a9 commit 9a94dd1

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

app/Http/SEO/Projects.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use App\SemanticSEO\Project;
99
use App\SemanticSEO\WebPage;
1010
use NoelDeMartin\SemanticSEO\Support\Facades\SemanticSEO;
11-
use Statamic\Entries\Entry;
11+
use Statamic\Structures\Page;
1212

1313
class Projects
1414
{
@@ -28,7 +28,7 @@ public function index(): void
2828
->publisher(NoelDeMartinOrganization::class);
2929
}
3030

31-
public function show(Entry $project): void
31+
public function show(Page $project): void
3232
{
3333
SemanticSEO::meta(trans("seo.projects.{$project->slug}"));
3434
SemanticSEO::is(new Project($project));

tests/Feature/NavigationTest.php

+3-9
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,9 @@
3030
});
3131

3232
test('Projects', function () {
33-
$response = $this->get('/projects');
34-
35-
$response->assertStatus(200);
36-
$response->assertSee('Umai');
37-
$response->assertSee('Soukai');
38-
$response->assertSee('Geemba');
39-
40-
$this->get('/projects/geemba')->assertSee('We aimed to make fitness more accessible');
41-
$this->get('/projects/beastmasters')->assertSee('an online turn-based card game');
33+
$this->get('/projects')->assertStatus(200)->assertSee('Umai')->assertSee('Soukai')->assertSee('Geemba');
34+
$this->get('/projects/geemba')->assertStatus(200)->assertSee('We aimed to make fitness more accessible');
35+
$this->get('/projects/beastmasters')->assertStatus(200)->assertSee('an online turn-based card game');
4236
});
4337

4438
test('Now', function () {

0 commit comments

Comments
 (0)