Completed
Push — AUTOMATED_TESTING ( 4870f5...28a62a )
by Gordon
14:27
created

NearestPOIPageTest::testFind()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
class NearestPOIPageTest extends SapphireTest {
4
5
	protected static $fixture_file = 'mappable-poi/tests/pointsofinterest.yml';
6
7
	public function testCMSFields() {
8
		$np = new NearestPOIPage();
9
		$fields = $np->getCMSFields();
10
		$tab = $fields->findOrMakeTab('Root.Layer');
11
		$fields = $tab->FieldList();
12
		$names = array();
13
		foreach ($fields as $field) {
14
			$names[] = $field->getName();
15
		}
16
		$expected = array('PointsOfInterestLayerID');
17
		$this->assertEquals($expected, $names);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<NearestPOIPageTest>.

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...
18
	}
19
}
20