Addshore has uploaded a new change for review.
https://gerrit.wikimedia.org/r/89176
Change subject: Only run setrank tests if experimental is on
......................................................................
Only run setrank tests if experimental is on
if Experimental is off these tests will always fail
Change-Id: Id05a6ff8bcc9908f8b618551d79a67475bebbe53
---
M repo/tests/phpunit/includes/api/SetStatementRankTest.php
1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/76/89176/1
diff --git a/repo/tests/phpunit/includes/api/SetStatementRankTest.php
b/repo/tests/phpunit/includes/api/SetStatementRankTest.php
index 1593b7c..478aa47 100644
--- a/repo/tests/phpunit/includes/api/SetStatementRankTest.php
+++ b/repo/tests/phpunit/includes/api/SetStatementRankTest.php
@@ -88,6 +88,11 @@
}
public function testRequests() {
+ //TODO REMOVE ONCE ENABLED
+ if ( !defined( 'WB_EXPERIMENTAL_FEATURES' ) ||
!WB_EXPERIMENTAL_FEATURES ) {
+ $this->markTestSkipped( 'WB_EXPERIMENTAL_FEATURES are
not enabled so this module is not enabled..' );
+ }
+
$ranks = ClaimSerializer::getRanks();
foreach ( $this->statementProvider() as $statement ) {
@@ -202,6 +207,11 @@
* @dataProvider invalidClaimProvider
*/
public function testInvalidClaimGuid( $claimGuid ) {
+ //TODO REMOVE ONCE ENABLED
+ if ( !defined( 'WB_EXPERIMENTAL_FEATURES' ) ||
!WB_EXPERIMENTAL_FEATURES ) {
+ $this->markTestSkipped( 'WB_EXPERIMENTAL_FEATURES are
not enabled so this module is not enabled..' );
+ }
+
$ranks = ClaimSerializer::getRanks();
$params = array(
--
To view, visit https://gerrit.wikimedia.org/r/89176
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id05a6ff8bcc9908f8b618551d79a67475bebbe53
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits