TestWishListPageController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 29
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 1
1
<?php
2
3
namespace Dynamic\Wishlist\Test\Extra;
4
5
use Dynamic\Wishlist\Extensions\ProductWishListControllerExtension;
6
use SilverStripe\Dev\TestOnly;
7
use SilverStripe\View\Requirements;
8
9
/**
10
 * Class TestWishListPage_Controller
11
 */
12
class TestWishListPageController extends \PageController implements TestOnly
13
{
14
15
    /**
16
     * @var string
17
     */
18
    private static $managed_object = TestProductWishList::class;
19
20
    /**
21
     * @var array
22
     */
23
    private static $url_handler = [
24
        'test-wishlist-page-path' => 'index'
25
    ];
26
27
    /**
28
     * @var array
29
     */
30
    private static $extensions = [
31
        ProductWishListControllerExtension::class,
32
    ];
33
34
    /**
35
     * empty init
36
     */
37
    public function init()
38
    {
39
        parent::init();
40
        Requirements::clear();
41
    }
42
}
43