Skip to content

Commit 9b471ef

Browse files
committed
Update test schema to use filenames for the publication templates
1 parent 3330c90 commit 9b471ef

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

packages/framework/tests/Feature/PublicationListPageTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ protected function getTestData(): array
6868
return [
6969
'name' => 'test',
7070
'canonicalField' => 'canonical',
71-
'detailTemplate' => 'detail',
72-
'listTemplate' => 'list',
71+
'detailTemplate' => 'detail.blade.php',
72+
'listTemplate' => 'list.blade.php',
7373
'pagination' => [
7474
'sortField' => 'sort',
7575
'sortAscending' => true,

packages/framework/tests/Feature/PublicationPageTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ protected function createRealPublicationFiles(): void
116116
file_put_contents(Hyde::path('test-publication/schema.json'), '{
117117
"name": "test",
118118
"canonicalField": "slug",
119-
"detailTemplate": "test_detail",
120-
"listTemplate": "test_list",
119+
"detailTemplate": "test_detail.blade.php",
120+
"listTemplate": "test_list.blade.php",
121121
"pagination": {
122122
"sortField": "__createdAt",
123123
"sortAscending": true,

packages/framework/tests/Feature/PublicationTypeTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ protected function getTestData(array $mergeData = []): array
211211
return array_merge([
212212
'name' => 'Test Publication',
213213
'canonicalField' => 'title',
214-
'detailTemplate' => 'test-publication_detail',
215-
'listTemplate' => 'test-publication_list',
214+
'detailTemplate' => 'test-publication_detail.blade.php',
215+
'listTemplate' => 'test-publication_list.blade.php',
216216
'pagination' => [
217217
'sortField' => '__createdAt',
218218
'sortAscending' => true,

packages/framework/tests/Unit/Pages/PublicationPageUnitTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ protected function pubType(): PublicationType
242242
return new PublicationType(
243243
'name',
244244
'canonicalField',
245-
'detailTemplate',
246-
'listTemplate',
245+
'detailTemplate.blade.php',
246+
'listTemplate.blade.php',
247247
['sortField', true, true, 1],
248248
[],
249249
'directory'

tests/fixtures/test-publication-schema.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "Test Publication",
33
"canonicalField": "title",
4-
"detailTemplate": "test-publication_detail",
5-
"listTemplate": "test-publication_list",
4+
"detailTemplate": "test-publication_detail.blade.php",
5+
"listTemplate": "test-publication_list.blade.php",
66
"pagination": {
77
"sortField": "__createdAt",
88
"sortAscending": true,

0 commit comments

Comments
 (0)