aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/changes/RecentChangeTest.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2022-11-24 23:22:36 +0100
committerUmherirrender <umherirrender_de.wp@web.de>2022-11-25 00:42:53 +0100
commitc6fecd5ab0eb6386dda7f31dbbae0ad86ab3ae8c (patch)
tree4253fd446c989677857219875626d1b3a36d10a0 /tests/phpunit/includes/changes/RecentChangeTest.php
parent03835eb843dc028ad23b385b8ff04529c828eb54 (diff)
downloadmediawikicore-c6fecd5ab0eb6386dda7f31dbbae0ad86ab3ae8c.tar.gz
mediawikicore-c6fecd5ab0eb6386dda7f31dbbae0ad86ab3ae8c.zip
tests: Replace assertEmpty with assertSame
assertSame avoids use of loose comparisons and allows to check the expected type Change-Id: If821d1be2bc1ff9f8b70968a339f33c7a8e8880a
Diffstat (limited to 'tests/phpunit/includes/changes/RecentChangeTest.php')
-rw-r--r--tests/phpunit/includes/changes/RecentChangeTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/changes/RecentChangeTest.php b/tests/phpunit/includes/changes/RecentChangeTest.php
index 85e777fad9ce..650798f5b63c 100644
--- a/tests/phpunit/includes/changes/RecentChangeTest.php
+++ b/tests/phpunit/includes/changes/RecentChangeTest.php
@@ -542,7 +542,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
$errors = $rc->doMarkPatrolled(
$this->mockUserAuthorityWithPermissions( $this->user, [ 'patrol', 'autopatrol' ] )
);
- $this->assertEmpty( $errors );
+ $this->assertSame( [], $errors );
$reloadedRC = RecentChange::newFromId( $rc->getAttribute( 'rc_id' ) );
$this->assertSame( '1', $reloadedRC->getAttribute( 'rc_patrolled' ) );