Skip to content

Commit ac019be

Browse files
committed
rename test to ApiTest
1 parent 0aadf6a commit ac019be

File tree

2 files changed

+22
-30
lines changed

2 files changed

+22
-30
lines changed

tests/TestApi.php renamed to tests/ApiTest.php

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
11
<?php
22

3-
use Unisharp\Laravelfilemanager\Tests;
4-
5-
class TestApi extends TestCase
3+
class ApiTest extends Illuminate\Foundation\Testing\TestCase
64
{
5+
/**
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+
726
public function testFolder()
827
{
928
auth()->loginUsingId(1);

tests/TestCase.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)