From 4ad0cf311398a480a28609d29cc1dad353ce1e6d Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 6 Dec 2024 14:03:20 +0100 Subject: [PATCH] Try to fix crazed test --- packages/framework/tests/Unit/IncludesFacadeUnitTest.php | 2 ++ 1 file changed, 2 insertions(+) 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); });