1 | <?php |
||
3 | namespace Pixelpeter\IsoCodesValidation; |
||
4 | |||
5 | abstract class TestCase extends \Illuminate\Foundation\Testing\TestCase |
||
6 | { |
||
7 | /** |
||
8 | * The base URL to use while testing the application. |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $baseUrl = 'http://localhost'; |
||
13 | |||
14 | /** |
||
15 | * Creates the application. |
||
16 | * |
||
17 | * @return \Illuminate\Foundation\Application |
||
18 | */ |
||
19 | public function createApplication() |
||
20 | { |
||
21 | $app = require __DIR__.'/../vendor/laravel/laravel/bootstrap/app.php'; |
||
22 | |||
23 | $app->register(\Pixelpeter\IsoCodesValidation\IsoCodesValidationServiceProvider::class); |
||
24 | |||
25 | $app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap(); |
||
26 | |||
27 | return $app; |
||
28 | } |
||
30 |