Passed
Pull Request — next (#137)
by Bas
04:08
created

TestConfig   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A set() 0 12 1
1
<?php
2
3
namespace TestSetup;
4
5
use Illuminate\Config\Repository;
6
7
class TestConfig
8
{
9
    public static function set($app)
10
    {
11
        tap($app->make('config'), function (Repository $config) {
12
            $config->set('database.connections.arangodb', [
13
                'name'                                      => 'arangodb',
14
                'driver'                                    => 'arangodb',
15
                'endpoint'                                  => env('DB_ENDPOINT', 'http://localhost:8529'),
16
                'username'                                  => env('DB_USERNAME', 'root'),
17
                'password'                                  => env('DB_PASSWORD', null),
18
                'database'                                  => env('DB_DATABASE', 'aranguent__test'),
19
            ]);
20
            $config->set('database.default', 'arangodb');
21
        });
22
    }
23
}
24