aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/unit/includes/Permissions/PermissionManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/unit/includes/Permissions/PermissionManagerTest.php')
-rw-r--r--tests/phpunit/unit/includes/Permissions/PermissionManagerTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/phpunit/unit/includes/Permissions/PermissionManagerTest.php b/tests/phpunit/unit/includes/Permissions/PermissionManagerTest.php
index 6b3dea05bd5c..52fe17df3d79 100644
--- a/tests/phpunit/unit/includes/Permissions/PermissionManagerTest.php
+++ b/tests/phpunit/unit/includes/Permissions/PermissionManagerTest.php
@@ -204,7 +204,7 @@ class PermissionManagerTest extends MediaWikiUnitTestCase {
if ( $isRedirect ) {
$target = $this->createMock( Title::class );
$target->method( 'inNamespace' )
- ->with( $this->equalTo( NS_USER ) )
+ ->with( NS_USER )
->willReturn( $targetNamespace === NS_USER );
$target->method( 'getText' )->willReturn( $targetText );
@@ -219,7 +219,7 @@ class PermissionManagerTest extends MediaWikiUnitTestCase {
$revisionLookup = $this->createMock( RevisionLookup::class );
$revisionLookup->method( 'getRevisionByTitle' )
- ->with( $this->equalTo( $title ) )
+ ->with( $title )
->willReturn( $revisionRecord );
$permissionManager = $this->getPermissionManager( [
@@ -274,7 +274,7 @@ class PermissionManagerTest extends MediaWikiUnitTestCase {
$title = $this->createMock( Title::class );
$title->expects( $this->once() )
->method( 'getRestrictions' )
- ->with( $this->equalTo( $action ) )
+ ->with( $action )
->willReturn( $restrictions );
$title->method( 'areRestrictionsCascading' )->willReturn( $cascading );