Skip to content

Commit 4ad0cf3

Browse files
committed
Try to fix crazed test
1 parent 186d55e commit 4ad0cf3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/framework/tests/Unit/IncludesFacadeUnitTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ public function testMarkdownReturnsRenderedDefaultValueWhenNotFound()
163163
$expected = '<h1>default</h1>';
164164

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

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

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

0 commit comments

Comments
 (0)