Completed
Pull Request — master (#11)
by Dániel
01:23
created

TestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 30
rs 10
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' => 'trjejxvhkw9s49etr4qpubg4h4qndjqm', // Used for testing. Do not use this in your production environment
20
            'locale'   => 'en_GB',
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