File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
packages/framework/tests/Unit Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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 });
You can’t perform that action at this time.
0 commit comments