Skip to content

Commit

Permalink
[TV-403] Adjust public path
Browse files Browse the repository at this point in the history
  • Loading branch information
David Esquivel committed Feb 14, 2024
1 parent 99b16ad commit cc23287
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tests/Helper/MixTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ public function mix_cdn_throws_exception_with_unknown_file()
/** @test */
public function mix_cdn_throws_exception_with_no_manifest_file()
{
$this->app->bind('path.public', function () {
return __DIR__.'/../testfiles/dummy';
});
app()->usePublicPath(__DIR__.'/../testfiles/dummy');

$this->expectException(\Exception::class);
$this->expectExceptionMessage('The Mix manifest does not exist.');
Expand Down
4 changes: 1 addition & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ protected function getEnvironmentSetUp($app)
$app['config']->set('asset-cdn.cdn_url', 'http://cdn.localhost');
$app['config']->set('asset-cdn.filesystem.disk', 'test_filesystem');

$app->bind('path.public', function () {
return __DIR__.'/testfiles/public';
});
app()->usePublicPath(__DIR__.'testfiles/public');
}

protected function setFilesInConfig(array $config)
Expand Down

0 comments on commit cc23287

Please sign in to comment.