GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — rewrite-laravel ( eaffaa...c55a9d )
by Oliver
03:01
created

TestCase::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
3
namespace Tests\Features;
4
5
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
6
use Tests\CreatesApplication;
7
use Tests\UsesDatabase;
8
use Tests\utils\DbUtils;
9
use UsersTableSeeder;
10
11
abstract class TestCase extends BaseTestCase
12
{
13
    use CreatesApplication;
14
    use UsesDatabase;
15
    use DbUtils;
16
17
    public function setUp()
18
    {
19
        $this->prepareDatabase();
20
21
        parent::setUp();
22
23
        $this->setUpDatabase(function () {
24
            $this->artisan('db:seed', ['--class' => UsersTableSeeder::class]);
25
        });
26
27
        $this->beginDatabaseTransaction();
28
    }
29
}