Completed
Pull Request — master (#47)
by Raí
04:39
created

CreatesApplication   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createApplication() 0 9 1
1
<?php
2
3
namespace Tests;
4
5
use Faker\Factory;
6
use Illuminate\Contracts\Console\Kernel;
7
8
trait CreatesApplication
9
{
10
    protected $faker;
11
12
    /**
13
     * Creates the application.
14
     *
15
     * @return \Illuminate\Foundation\Application
16
     */
17
    public function createApplication()
18
    {
19
        $app = require __DIR__.'/../bootstrap/app.php';
20
21
        $app->make(Kernel::class)->bootstrap();
22
23
        $this->faker = Factory::create('pt_BR');
24
25
        return $app;
26
    }
27
}
28