Completed
Pull Request — master (#173)
by Matthew
12:39
created

LocatorTest_Base   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 18
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 9 1
1
<?php
2
3
namespace Dynamic\Locator\Tests;
4
5
use Dynamic\SilverStripeGeocoder\GoogleGeocoder;
6
use SilverStripe\Core\Config\Config;
7
use SilverStripe\Dev\SapphireTest;
8
9
/**
10
 * Class LocatorTest_Base
11
 * @package Dynamic\Locator\Tests
12
 */
13
class LocatorTest_Base extends SapphireTest
14
{
15
16
    protected static $fixture_file = 'fixtures.yml';
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function setUp()
22
    {
23
        Config::modify()->set(
24
            GoogleGeocoder::class,
25
            'geocoder_api_key',
26
            getenv('api_key')
27
        );
28
        parent::setUp();
29
    }
30
}
31