Completed
Pull Request — master (#2)
by Matthew
07:05 queued 04:26
created

TestWishListPageController   A

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;
1 ignored issue
show
introduced by
The private property $managed_object is not used, and could be removed.
Loading history...
19
20
    /**
21
     * @var array
22
     */
23
    private static $url_handler = [
1 ignored issue
show
introduced by
The private property $url_handler is not used, and could be removed.
Loading history...
24
        'test-wishlist-page-path' => 'index'
25
    ];
26
27
    /**
28
     * @var array
29
     */
30
    private static $extensions = [
1 ignored issue
show
introduced by
The private property $extensions is not used, and could be removed.
Loading history...
31
        ProductWishListControllerExtension::class,
32
    ];
33
34
    /**
35
     * empty init
36
     */
37
    public function init()
38
    {
39
        parent::init();
40
        Requirements::clear();
41
    }
42
}
43