Skip to content

Commit

Permalink
Generate test for HtmlPage class
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Sep 8, 2024
1 parent 91f034f commit 7bc8e81
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Hyde\Framework\Testing\Unit\Pages;

use Hyde\Hyde;
use Hyde\Pages\HtmlPage;
use Hyde\Pages\BladePage;
use Hyde\Pages\DocumentationPage;
use Hyde\Pages\MarkdownPage;
Expand Down Expand Up @@ -51,6 +52,13 @@ public function testDocumentationPageGetHelperReturnsDocumentationPageObject()

$this->assertInstanceOf(DocumentationPage::class, DocumentationPage::parse('foo'));
}

public function testHtmlPageGetHelperReturnsHtmlPageObject()
{
$this->mockFilesystemCalls('_pages/foo.html');

$this->assertInstanceOf(HtmlPage::class, HtmlPage::parse('foo'));
}

protected function mockFilesystemCalls(string $path): void
{
Expand Down

0 comments on commit 7bc8e81

Please sign in to comment.