for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare( strict_types = 1 );
namespace Maps\Tests\System\MediaWiki\Api;
/**
* @covers \Maps\MediaWiki\Api\ApiGeocode
* @group medium
*
* @licence GNU GPL v2+
* @author Jeroen De Dauw < [email protected] >
*/
class ApiGeocodeTest extends \ApiTestCase {
public function testResponseHasResultsArray() {
$result = $this->doApiRequest( [
'action' => 'geocode',
'locations' => ''
] );
$this->assertArrayHasKey( 'results', $result[0] );
$this->assertTrue( is_array( $result[0]['results'] ) );
}