aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/unit/includes/editpage/Constraint/SpamRegexConstraintTest.php
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2021-04-23 14:43:04 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2021-04-23 14:43:04 +0000
commit89b00fcfbe966092f405f0cc939eb6f052cf2a2b (patch)
tree436842e3898b57ceb305807d5aa1a1ea26374078 /tests/phpunit/unit/includes/editpage/Constraint/SpamRegexConstraintTest.php
parentb95a07380a64e72581a8bf41f466f58a1901ecb1 (diff)
parentc1ee8250e9bc9c9c3161ca0ded3946fd2af1da7d (diff)
downloadmediawikicore-89b00fcfbe966092f405f0cc939eb6f052cf2a2b.tar.gz
mediawikicore-89b00fcfbe966092f405f0cc939eb6f052cf2a2b.zip
Merge "Remove unnecessary ->equalTo() from tests"
Diffstat (limited to 'tests/phpunit/unit/includes/editpage/Constraint/SpamRegexConstraintTest.php')
-rw-r--r--tests/phpunit/unit/includes/editpage/Constraint/SpamRegexConstraintTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/phpunit/unit/includes/editpage/Constraint/SpamRegexConstraintTest.php b/tests/phpunit/unit/includes/editpage/Constraint/SpamRegexConstraintTest.php
index 8fabbb94703c..ce39e9869490 100644
--- a/tests/phpunit/unit/includes/editpage/Constraint/SpamRegexConstraintTest.php
+++ b/tests/phpunit/unit/includes/editpage/Constraint/SpamRegexConstraintTest.php
@@ -42,13 +42,13 @@ class SpamRegexConstraintTest extends MediaWikiUnitTestCase {
$spamChecker = $this->createMock( SpamChecker::class );
$spamChecker->expects( $this->once() )
->method( 'checkSummary' )
- ->with( $this->equalTo( $summary ) )
+ ->with( $summary )
->willReturn( false );
$spamChecker->expects( $this->exactly( 2 ) )
->method( 'checkContent' )
->withConsecutive(
- [ $this->equalTo( $sectionHeading ) ],
- [ $this->equalTo( $text ) ]
+ [ $sectionHeading ],
+ [ $text ]
)
->willReturn( false );
@@ -80,7 +80,7 @@ class SpamRegexConstraintTest extends MediaWikiUnitTestCase {
$spamChecker = $this->createMock( SpamChecker::class );
$spamChecker->expects( $this->once() )
->method( 'checkSummary' )
- ->with( $this->equalTo( $summary ) )
+ ->with( $summary )
->willReturn( $matchingText );
$prefixedDBKey = 'PrefixedDBKeyGoesHere';