Completed
Push — AUTOMATED_TESTING ( 9cc382...c62760 )
by Gordon
12:06
created

MapMarkerSetsExtensionTest::setUpOnce()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 6
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
class MapMarkerSetsExtensionTest extends SapphireTest {
4
5
	public function setUpOnce() {
6
		$this->requiredExtensions = array(
7
			'Member' => array('MapExtension', 'MapMarkerSetsExtension')
8
		);
9
		parent::setupOnce();
10
	}
11
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);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<MapMarkerSetsExtensionTest>.

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.

Loading history...
23
	}
24
25
}
26