Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
19 | public function testGetCMSFields() |
||
20 | { |
||
21 | $object = $this->objFromFixture('SlideImage', 'one'); |
||
|
|||
22 | $fields = $object->getCMSFields(); |
||
23 | $extension = new DynamicContentBlockDataExtension(); |
||
24 | $extension->updateCMSFields($fields); |
||
25 | |||
26 | $this->assertInstanceOf(FieldList::class, $fields); |
||
27 | $this->assertNotNull($fields->dataFieldByName('SlideshowBlock')); |
||
28 | } |
||
29 | } |
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.