FS_Test   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 9
dl 0
loc 42
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A logOut() 0 3 1
A testProductPage() 0 2 1
A setUp() 0 7 1
1
<?php
2
3
namespace Dynamic\FoxyStripe\Test;
4
5
use SilverStripe\Dev\FunctionalTest;
6
7
class FS_Test extends FunctionalTest
8
{
9
    /**
10
     * @var string
11
     */
12
    protected static $fixture_file = 'fixtures.yml';
13
14
    /**
15
     * @var bool
16
     */
17
    protected static $disable_themes = true;
18
19
    /**
20
     * @var bool
21
     */
22
    protected static $use_draft_site = false;
23
24
    /**
25
     *
26
     */
27
    public function setUp()
28
    {
29
        parent::setUp();
30
31
        ini_set('display_errors', 1);
32
        ini_set('log_errors', 1);
33
        error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
34
    }
35
36
    /**
37
     *
38
     */
39
    public function logOut()
40
    {
41
        $this->session()->clear('loggedInAs');
42
    }
43
44
    /**
45
     *
46
     */
47
    public function testProductPage()
48
    {
49
    }
50
}
51