Skip to content

Commit

Permalink
Fixed public path handling and property placement of file
Browse files Browse the repository at this point in the history
  • Loading branch information
thirsch committed May 3, 2024
1 parent 30e6027 commit 816bfa0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Components/LinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

class LinkTest extends TestCase
{
protected function getEnvironmentSetUp($app)
{
$app->setBasePath(dirname(__DIR__) . '/files');
}

protected function tearDown(): void
{
$this->artisan('view:clear');
Expand Down
5 changes: 5 additions & 0 deletions tests/Components/ScriptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

class ScriptTest extends TestCase
{
protected function getEnvironmentSetUp($app)
{
$app->setBasePath(dirname(__DIR__) . '/files');
}

protected function tearDown(): void
{
$this->artisan('view:clear');
Expand Down
4 changes: 4 additions & 0 deletions tests/files/public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"/css/app.css" : "/css/app.css?id=some-random-string",
"/js/app.js" : "/js/app.js?id=some-random-string"
}

0 comments on commit 816bfa0

Please sign in to comment.