-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestCase.php
30 lines (25 loc) · 1.06 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
<?php
namespace jeremykenedy\LaravelEmailDatabaseLog\Tests;
use jeremykenedy\LaravelEmailDatabaseLog\LaravelEmailDatabaseLogServiceProvider;
class TestCase extends \Orchestra\Testbench\TestCase
{
public function getEnvironmentSetUp($app)
{
// import the migrations
include_once __DIR__.'/../src/database/migrations/2015_07_31_1_email_log.php';
include_once __DIR__.'/../src/database/migrations/2016_09_21_001638_add_bcc_column_email_log.php';
include_once __DIR__.'/../src/database/migrations/2017_11_10_001638_add_more_mail_columns_email_log.php';
include_once __DIR__.'/../src/database/migrations/2018_05_11_115355_use_longtext_for_attachments.php';
// run the up() method of those migration classes
(new \EmailLog)->up();
(new \AddBccColumnEmailLog)->up();
(new \AddMoreMailColumnsEmailLog)->up();
(new \UseLongtextForAttachments)->up();
}
protected function getPackageProviders($app)
{
return [
LaravelEmailDatabaseLogServiceProvider::class,
];
}
}