Skip to content

Commit

Permalink
Update view
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jan 10, 2023
1 parent 248342d commit c1c4310
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function test_can_compile_publication_pages_with_registered_namespaced_vi
$this->setupTestPublication();

$schema = json_decode(file_get_contents(Hyde::path('test-publication/schema.json')));
$schema->detailTemplate = 'hyde::layouts.publication_detail';
$schema->detailTemplate = 'hyde-publications::publication_detail';
file_put_contents(Hyde::path('test-publication/schema.json'), json_encode($schema));

$publicationPage = new PublicationPage('my-publication', type: PublicationType::get('test-publication'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ public function testCompilingWithPublicationTypeThatUsesTheVendorViews()

(new CreatesNewPublicationType('Test Publication', collect([])))->create();
$type = PublicationType::get('test-publication');
$type->detailTemplate = 'hyde::layouts.publication_detail';
$type->listTemplate = 'hyde::layouts.publication_list';
$type->detailTemplate = 'hyde-publications::publication_detail';
$type->listTemplate = 'hyde-publications::publication_list';
$type->save();

foreach (range(1, 5) as $i) {
Expand Down Expand Up @@ -129,7 +129,7 @@ public function testCompilingWithPublicationTypeThatUsesThePublishedPaginatedVie
(new CreatesNewPublicationType('Test Publication', collect([])))->create();

$type = PublicationType::get('test-publication');
$type->listTemplate = 'hyde::layouts.publication_paginated_list';
$type->listTemplate = 'hyde-publications::publication_paginated_list';
$type->pageSize = 2;
$type->save();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@extends('hyde::framework.resources.views.layouts.app')
@extends('hyde::layouts.app')
@section('content')
<main id="content" class="mx-auto max-w-7xl py-16 px-8">
<article class="prose dark:prose-invert">
Expand Down

0 comments on commit c1c4310

Please sign in to comment.