jenkins-bot has submitted this change and it was merged.

Change subject: AssertContains must accept equals as well
......................................................................


AssertContains must accept equals as well

Change-Id: Iffdcf354cab39fa8e052995533e37105875ed3a4
---
M SpecialMathStatus.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Physikerwelt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/SpecialMathStatus.php b/SpecialMathStatus.php
index 39cb34d..c4c97b3 100644
--- a/SpecialMathStatus.php
+++ b/SpecialMathStatus.php
@@ -129,7 +129,7 @@
        }
 
        private function assertContains( $expected, $real, $message = '' ) {
-               $this->assertTrue( strpos( $real, $expected ) , $message );
+               $this->assertTrue( strpos( $real, $expected ) !== false, 
$message );
        }
 
        private function assertEquals( $expected, $real, $message = '' ) {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iffdcf354cab39fa8e052995533e37105875ed3a4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: debug
Gerrit-Owner: Physikerwelt <[email protected]>
Gerrit-Reviewer: Physikerwelt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to