Skip to content

Commit

Permalink
Use filememory testing helper
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 7, 2024
1 parent b95d1a5 commit 73517e3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/framework/tests/Unit/Pages/MarkdownPostParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Hyde\Framework\Testing\Unit\Pages;

use Hyde\Facades\Filesystem;
use Hyde\Markdown\Models\FrontMatter;
use Hyde\Markdown\Models\Markdown;
use Hyde\Pages\MarkdownPost;
Expand All @@ -20,7 +19,7 @@ protected function setUp(): void
{
parent::setUp();

Filesystem::putContents('_posts/test-post.md', <<<'MD'
$this->file('_posts/test-post.md', <<<'MD'
---
title: My New Post
category: blog
Expand All @@ -35,13 +34,6 @@ protected function setUp(): void
);
}

protected function tearDown(): void
{
Filesystem::unlink('_posts/test-post.md');

parent::tearDown();
}

public function testCanParseMarkdownFile()
{
$post = MarkdownPost::parse('test-post');
Expand Down

0 comments on commit 73517e3

Please sign in to comment.