1 | <?php |
||
3 | namespace Dynamic\FlexSlider\Tests; |
||
4 | |||
5 | use Dynamic\FlexSlider\Model\SlideImage; |
||
6 | use SilverStripe\Core\Config\Config; |
||
7 | use SilverStripe\Dev\SapphireTest; |
||
8 | use SilverStripe\Forms\FieldList; |
||
9 | use SilverStripe\ORM\ValidationException; |
||
10 | use SilverStripe\Security\Member; |
||
11 | |||
12 | class SlideImageTest extends SapphireTest |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected static $fixture_file = 'flexslider/tests/fixtures.yml'; |
||
18 | |||
19 | /** |
||
20 | * |
||
21 | */ |
||
22 | public function testGetCMSFields() |
||
23 | { |
||
24 | $object = new SlideImage(); |
||
25 | $fieldset = $object->getCMSFields(); |
||
26 | $this->assertInstanceOf(FieldList::class, $fieldset); |
||
27 | $this->assertNotNull($fieldset->dataFieldByName('Name')); |
||
|
|||
28 | $this->assertNotNull($fieldset->dataFieldByName('Image')); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * |
||
33 | */ |
||
34 | View Code Duplication | public function testValidateName() |
|
41 | |||
42 | /** |
||
43 | * |
||
44 | */ |
||
45 | View Code Duplication | public function testValidateImage() |
|
52 | |||
53 | /** |
||
54 | * |
||
55 | */ |
||
56 | public function testProvidePermissions() |
||
66 | |||
67 | /** |
||
68 | * |
||
69 | */ |
||
70 | View Code Duplication | public function testCanCreate() |
|
82 | |||
83 | /** |
||
84 | * |
||
85 | */ |
||
86 | View Code Duplication | public function testCanEdit() |
|
98 | |||
99 | /** |
||
100 | * |
||
101 | */ |
||
102 | View Code Duplication | public function testCanDelete() |
|
114 | |||
115 | /** |
||
116 | * |
||
117 | */ |
||
118 | View Code Duplication | public function testCanView() |
|
119 | { |
||
143 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.