Skip to content

Commit

Permalink
Try to fix crazed test
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 6, 2024
1 parent 186d55e commit 4ad0cf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/framework/tests/Unit/IncludesFacadeUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public function testMarkdownReturnsRenderedDefaultValueWhenNotFound()
$expected = '<h1>default</h1>';

$this->mockFilesystemFromClosure(function ($filesystem) use ($filename) {
$filesystem->shouldReceive('glob')->andReturn([])->byDefault(); // Looking for media files
$filesystem->shouldReceive('exists')->with($this->includesPath($filename))->andReturn(false);
});

Expand All @@ -180,6 +181,7 @@ public function testMarkdownWithAndWithoutExtension()
$content = '# foo bar';
$filename = 'foo.md';

$filesystem->shouldReceive('glob')->andReturn([])->byDefault(); // Looking for media files
$filesystem->shouldReceive('exists')->with($this->includesPath($filename))->andReturn(true);
$filesystem->shouldReceive('get')->with($this->includesPath($filename))->andReturn($content);
});
Expand Down

0 comments on commit 4ad0cf3

Please sign in to comment.