Skip to content

Commit ddb8779

Browse files
committed
Fix view paths now need to be absolute in test
1 parent 12eb0e7 commit ddb8779

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/framework/tests/Unit/SourceFilesInCustomDirectoriesCanBeCompiledTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ public function testBladePagesInChangedDirectoryCanBeCompiled()
7878
Filesystem::touch('testSourceDir/blade/test.blade.php');
7979

8080
BladePage::setSourceDirectory('testSourceDir/blade');
81-
Config::set('view.paths', ['testSourceDir/blade']);
81+
82+
Config::set('view.paths', [Hyde::path('testSourceDir/blade')]);
83+
app('view')->addLocation(Hyde::path('testSourceDir/blade'));
8284

8385
StaticPageBuilder::handle(BladePage::parse('test'));
8486

0 commit comments

Comments
 (0)