diff --git a/packages/framework/tests/Unit/IncludesFacadeUnitTest.php b/packages/framework/tests/Unit/IncludesFacadeUnitTest.php
index 37e830b33fe..9f088034dce 100644
--- a/packages/framework/tests/Unit/IncludesFacadeUnitTest.php
+++ b/packages/framework/tests/Unit/IncludesFacadeUnitTest.php
@@ -163,6 +163,7 @@ public function testMarkdownReturnsRenderedDefaultValueWhenNotFound()
$expected = '
default
';
$this->mockFilesystemFromClosure(function ($filesystem) use ($filename) {
+ $filesystem->shouldReceive('glob')->andReturn([])->byDefault(); // Looking for media files
$filesystem->shouldReceive('exists')->with($this->includesPath($filename))->andReturn(false);
});
@@ -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);
});