Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function testGetCMSFields() |
||
23 | { |
||
24 | $object = singleton('PromoBlock'); |
||
25 | $fields = $object->getCMSFields(); |
||
26 | $this->assertInstanceOf('FieldList', $fields); |
||
27 | $this->assertNull($fields->dataFieldByName('Promos')); |
||
28 | |||
29 | $object = $this->objFromFixture('PromoBlock', 'one'); |
||
30 | $fields = $object->getCMSFields(); |
||
31 | $this->assertInstanceOf('FieldList', $fields); |
||
32 | $this->assertNotNull($fields->dataFieldByName('Promos')); |
||
33 | } |
||
34 | |||
41 | } |
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.