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 0aadf6a commit ac019beCopy full SHA for ac019be
tests/TestApi.php renamed to tests/ApiTest.php
@@ -1,9 +1,28 @@
1
<?php
2
3
-use Unisharp\Laravelfilemanager\Tests;
4
-
5
-class TestApi extends TestCase
+class ApiTest extends Illuminate\Foundation\Testing\TestCase
6
{
+ /**
+ * The base URL to use while testing the application.
7
+ *
8
+ * @var string
9
+ */
10
+ protected $baseUrl = 'http://localhost';
11
+
12
13
+ * Creates the application.
14
15
+ * @return \Illuminate\Foundation\Application
16
17
+ public function createApplication()
18
+ {
19
+ $app = require './bootstrap/app.php';
20
21
+ $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
22
23
+ return $app;
24
+ }
25
26
public function testFolder()
27
28
auth()->loginUsingId(1);
tests/TestCase.php
0 commit comments