Mwjames has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/69085


Change subject: Travis + @test Settings::newFromGlobals Part III
......................................................................

Travis + @test Settings::newFromGlobals Part III

Change-Id: I0f96cc05169aed643abbb711e9ff52c194f39dcc
---
M tests/phpunit/includes/SettingsTest.php
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticMediaWiki 
refs/changes/85/69085/1

diff --git a/tests/phpunit/includes/SettingsTest.php 
b/tests/phpunit/includes/SettingsTest.php
index 9507264..963e584 100644
--- a/tests/phpunit/includes/SettingsTest.php
+++ b/tests/phpunit/includes/SettingsTest.php
@@ -174,9 +174,7 @@
                $this->assertTrue( $instance !== Settings::newFromGlobals() );
 
                foreach ( $settings as $key => $value ) {
-                       if ( isset( $GLOBALS[$key] ) ) {
-                               $this->assertEquals( $GLOBALS[$key], 
$instance->get( $key ) );
-                       }
+                       $this->assertEquals( $GLOBALS[$key], $instance->get( 
$key ), "Failed asserting that {$key} exists" );
                }
        }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/69085
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0f96cc05169aed643abbb711e9ff52c194f39dcc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticMediaWiki
Gerrit-Branch: master
Gerrit-Owner: Mwjames <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to