1 | <?php |
||
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 |