-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestCase.php
44 lines (37 loc) · 1.03 KB
/
TestCase.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
declare(strict_types=1);
namespace Ngmy\EloquentSerializedLob\Tests;
use Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider;
use Illuminate\Database\DatabaseManager;
use Ngmy\EloquentSerializedLob\EloquentSerializedLobServiceProvider;
use Orchestra\Testbench\TestCase as OrchestraTestCase;
abstract class TestCase extends OrchestraTestCase
{
/**
* @return void
*/
public function setUp(): void
{
parent::setUp();
$this->loadMigrationsFrom(__DIR__ . '/database/migrations');
}
/**
* @param \Illuminate\Foundation\Application $app
* @return array<int, string>
*/
protected function getPackageProviders($app): array
{
return [
IdeHelperServiceProvider::class,
EloquentSerializedLobServiceProvider::class,
];
}
/**
* @param \Illuminate\Foundation\Application $app
* @return void
*/
protected function getEnvironmentSetUp($app): void
{
$app->make('config')->set('database.default', 'mysql');
}
}