Completed
Push — apigeocode ( 298b5c...1f81a5 )
by Jeroen De
03:02
created

ApiGeocodeTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testResponseHasResultsArray() 0 9 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace Maps\Tests\System\MediaWiki\Api;
6
7
/**
8
 * @covers \Maps\MediaWiki\Api\ApiGeocode
9
 * @group medium
10
 *
11
 * @licence GNU GPL v2+
12
 * @author Jeroen De Dauw < [email protected] >
13
 */
14
class ApiGeocodeTest extends \ApiTestCase {
15
16
	public function testResponseHasResultsArray() {
17
		$result = $this->doApiRequest( [
18
			'action' => 'geocode',
19
			'locations' => ''
20
		 ] );
21
22
		$this->assertArrayHasKey( 'results', $result[0] );
23
		$this->assertTrue( is_array( $result[0]['results'] ) );
24
	}
25
26
}
27