We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa9021b commit 1eb9c5eCopy full SHA for 1eb9c5e
tests/BaseTest.php
@@ -18,17 +18,21 @@ protected function getPackageProviders($app)
18
];
19
}
20
21
+ protected function setUp(): void
22
+ {
23
+ parent::setUp();
24
+
25
+ // By default base_path points to the TestBench directory,
26
+ // but we need it to reference our app. Adding this link
27
+ // will make it transparent.
28
+ exec('ln -sf ' . __DIR__ . ' ' . base_path());
29
+ }
30
31
protected function tearDown(): void
32
{
33
parent::tearDown();
34
35
File::deleteDirectory(base_path('storage/framework/testing'));
36
37
- protected function getBasePath()
- {
- // By default base_path points to the TestBench directory,
- // we want it to point to the root of our package.
- return dirname(__DIR__);
- }
-}
38
+}
0 commit comments