jenkins-bot has submitted this change and it was merged.
Change subject: Namespace tests
......................................................................
Namespace tests
Change-Id: Ib3336b30e8796c4f4a40c587bdd448ca51828718
---
M tests/phpunit/BoundingBoxTest.php
M tests/phpunit/CoordTest.php
M tests/phpunit/GeoDataMathTest.php
M tests/phpunit/GeoSearchTest.php
M tests/phpunit/GlobeTest.php
M tests/phpunit/MiscGeoDataTest.php
M tests/phpunit/ParseCoordTest.php
M tests/phpunit/TagTest.php
8 files changed, 35 insertions(+), 2 deletions(-)
Approvals:
EBernhardson: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/phpunit/BoundingBoxTest.php
b/tests/phpunit/BoundingBoxTest.php
index 4cbdc2e..6807567 100644
--- a/tests/phpunit/BoundingBoxTest.php
+++ b/tests/phpunit/BoundingBoxTest.php
@@ -1,6 +1,9 @@
<?php
+namespace GeoData\Test;
+
use GeoData\BoundingBox;
+use MediaWikiTestCase;
/**
* @group GeoData
diff --git a/tests/phpunit/CoordTest.php b/tests/phpunit/CoordTest.php
index 775d649..ec02b76 100644
--- a/tests/phpunit/CoordTest.php
+++ b/tests/phpunit/CoordTest.php
@@ -1,8 +1,11 @@
<?php
+namespace GeoData\Test;
+
use GeoData\Coord;
use GeoData\Globe;
use GeoData\Math;
+use MediaWikiTestCase;
/**
* @todo: More tests
diff --git a/tests/phpunit/GeoDataMathTest.php
b/tests/phpunit/GeoDataMathTest.php
index ea7c385..1ea82c5 100644
--- a/tests/phpunit/GeoDataMathTest.php
+++ b/tests/phpunit/GeoDataMathTest.php
@@ -1,7 +1,10 @@
<?php
+namespace GeoData\Test;
+
use GeoData\Coord;
use GeoData\Math;
+use MediaWikiTestCase;
/**
* @group GeoData
diff --git a/tests/phpunit/GeoSearchTest.php b/tests/phpunit/GeoSearchTest.php
index 65e9096..53f228a 100644
--- a/tests/phpunit/GeoSearchTest.php
+++ b/tests/phpunit/GeoSearchTest.php
@@ -1,13 +1,19 @@
<?php
+namespace GeoData\Test;
+
+use ApiMain;
+use FauxRequest;
use GeoData\ApiQueryGeoSearch;
+use MediaWikiTestCase;
+use UsageException;
/**
* @group GeoData
*/
class GeoSearchTest extends MediaWikiTestCase {
public function setUp() {
- $this->setMwGlobals( 'wgAPIListModules', [ 'geosearch' =>
'MockApiQueryGeoSearch' ] );
+ $this->setMwGlobals( 'wgAPIListModules', [ 'geosearch' =>
'GeoData\Test\MockApiQueryGeoSearch' ] );
parent::setUp();
}
@@ -16,7 +22,7 @@
$request = new FauxRequest( $params );
$api = new ApiMain( $request );
- return $api->execute();
+ $api->execute();
}
/**
diff --git a/tests/phpunit/GlobeTest.php b/tests/phpunit/GlobeTest.php
index 0670ce0..c0e98f5 100644
--- a/tests/phpunit/GlobeTest.php
+++ b/tests/phpunit/GlobeTest.php
@@ -1,6 +1,10 @@
<?php
+
+namespace GeoData\Test;
+
use GeoData\Globe;
use GeoData\Math;
+use MediaWikiTestCase;
/**
* @group GeoData
diff --git a/tests/phpunit/MiscGeoDataTest.php
b/tests/phpunit/MiscGeoDataTest.php
index d585a31..40e9d11 100644
--- a/tests/phpunit/MiscGeoDataTest.php
+++ b/tests/phpunit/MiscGeoDataTest.php
@@ -1,6 +1,9 @@
<?php
+namespace GeoData\Test;
+
use GeoData\ApiQueryGeoSearchDb;
+use MediaWikiTestCase;
/**
* @group GeoData
diff --git a/tests/phpunit/ParseCoordTest.php b/tests/phpunit/ParseCoordTest.php
index cdd5f98..8cec932 100644
--- a/tests/phpunit/ParseCoordTest.php
+++ b/tests/phpunit/ParseCoordTest.php
@@ -1,8 +1,11 @@
<?php
+namespace GeoData\Test;
+
use GeoData\Coord;
use GeoData\CoordinatesParserFunction;
use GeoData\Globe;
+use MediaWikiTestCase;
/**
* @group GeoData
diff --git a/tests/phpunit/TagTest.php b/tests/phpunit/TagTest.php
index 9b18082..852e13d 100644
--- a/tests/phpunit/TagTest.php
+++ b/tests/phpunit/TagTest.php
@@ -1,5 +1,13 @@
<?php
+namespace GeoData\Test;
+
+use GeoData\Coord;
+use MediaWikiTestCase;
+use Parser;
+use ParserOptions;
+use Title;
+
/**
* @group GeoData
*/
--
To view, visit https://gerrit.wikimedia.org/r/306281
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib3336b30e8796c4f4a40c587bdd448ca51828718
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GeoData
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Yurik <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits