Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
12 | public function testCMSFields() { |
||
13 | $instance = new Member(); |
||
14 | $fields = $instance->getCMSFields(); |
||
15 | $tab = $fields->findOrMakeTab('Root.MapMarkerSets'); |
||
16 | $fields = $tab->FieldList(); |
||
17 | $names = array(); |
||
18 | foreach ($fields as $field) { |
||
19 | $names[] = $field->getName(); |
||
20 | } |
||
21 | $expected = array('MapMarkerSets'); |
||
22 | $this->assertEquals($expected, $names); |
||
|
|||
23 | } |
||
24 | |||
26 |
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.