Skip to content

Commit

Permalink
Fix publication type generator to properly specify the template files
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 28, 2022
1 parent 53c4164 commit f9f30f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ protected function handleCreate(): void
(new PublicationType(
$this->name,
$this->canonicalField ?? '__createdAt',
'detail',
'list',
'detail.blade.php',
'list.blade.php',
[
$this->sortField ?? '__createdAt',
$this->sortAscending ?? true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public function test_it_creates_a_new_publication_type()
{
"name": "Test Publication",
"canonicalField": "canonical",
"detailTemplate": "detail",
"listTemplate": "list",
"detailTemplate": "detail.blade.php",
"listTemplate": "list.blade.php",
"pagination": {
"sortField": "sort",
"sortAscending": false,
Expand All @@ -70,8 +70,8 @@ public function test_create_with_default_parameters()
{
"name": "Test Publication",
"canonicalField": "__createdAt",
"detailTemplate": "detail",
"listTemplate": "list",
"detailTemplate": "detail.blade.php",
"listTemplate": "list.blade.php",
"pagination": {
"sortField": "__createdAt",
"sortAscending": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public function test_command_creates_publication_type()
{
"name": "Test Publication",
"canonicalField": "publication-title",
"detailTemplate": "detail",
"listTemplate": "list",
"detailTemplate": "detail.blade.php",
"listTemplate": "list.blade.php",
"pagination": {
"sortField": "__createdAt",
"sortAscending": true,
Expand Down

0 comments on commit f9f30f7

Please sign in to comment.