Completed
Push — master ( 413e80...0c5ebe )
by Guillaume
07:00
created

TestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 30
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getEnvironmentSetUp() 0 10 1
A getPackageProviders() 0 6 1
1
<?php
2
3
namespace Xklusive\BattlenetApi\Test;
4
5
use Orchestra\Testbench\TestCase as Orchestra;
6
use Xklusive\BattlenetApi\BattlenetApiServiceProvider;
7
8
abstract class TestCase extends Orchestra
9
{
10
    /**
11
     * Set up the environment.
12
     *
13
     * @param \Illuminate\Foundation\Application $app
14
     */
15
    protected function getEnvironmentSetUp($app)
16
    {
17
        $app['config']->set('battlenet-api', [
18
            'domain'   => 'https://eu.api.battle.net',
19
            'api_key' => '3w7xjhkfp9w844m7aaupzrdyxh3cakww',
20
            'locale'   => 'fr_FR',
21
            'cache'   => false,
22
            'cache_duration'   => 600,
23
        ]);
24
    }
25
26
    /**
27
     * @param \Illuminate\Foundation\Application $app
28
     *
29
     * @return array
30
     */
31
    protected function getPackageProviders($app)
32
    {
33
        return [
34
            BattlenetApiServiceProvider::class,
35
        ];
36
    }
37
}
38