File tree 2 files changed +5
-11
lines changed
2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 8
8
use App \SemanticSEO \Project ;
9
9
use App \SemanticSEO \WebPage ;
10
10
use NoelDeMartin \SemanticSEO \Support \Facades \SemanticSEO ;
11
- use Statamic \Entries \ Entry ;
11
+ use Statamic \Structures \ Page ;
12
12
13
13
class Projects
14
14
{
@@ -28,7 +28,7 @@ public function index(): void
28
28
->publisher (NoelDeMartinOrganization::class);
29
29
}
30
30
31
- public function show (Entry $ project ): void
31
+ public function show (Page $ project ): void
32
32
{
33
33
SemanticSEO::meta (trans ("seo.projects. {$ project ->slug }" ));
34
34
SemanticSEO::is (new Project ($ project ));
Original file line number Diff line number Diff line change 30
30
});
31
31
32
32
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 ' );
42
36
});
43
37
44
38
test ('Now ' , function () {
You can’t perform that action at this time.
0 commit comments