diff --git a/tests/Components/LinkTest.php b/tests/Components/LinkTest.php index d34fcdc..d4934da 100644 --- a/tests/Components/LinkTest.php +++ b/tests/Components/LinkTest.php @@ -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'); diff --git a/tests/Components/ScriptTest.php b/tests/Components/ScriptTest.php index 61c01c4..b91bc53 100644 --- a/tests/Components/ScriptTest.php +++ b/tests/Components/ScriptTest.php @@ -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'); diff --git a/tests/files/public/mix-manifest.json b/tests/files/public/mix-manifest.json new file mode 100644 index 0000000..76f08aa --- /dev/null +++ b/tests/files/public/mix-manifest.json @@ -0,0 +1,4 @@ +{ + "/css/app.css" : "/css/app.css?id=some-random-string", + "/js/app.js" : "/js/app.js?id=some-random-string" +}