tests: Set rc_log_type in RecentChangeTest for log events

When running tests together with the CheckUser extension there is a
database error, for RC_LOG both fields must be not-null
Error 1048: Column 'cupe_log_type' cannot be null
Function: MediaWiki\CheckUser\Hooks::updateCheckUserData

Change-Id: I188df89b75a57aa1cc82c77f5c925bee634501cb
This commit is contained in:
Umherirrender 2023-12-12 23:03:09 +01:00
parent 25b80bcaa7
commit b3d8a0408e

View file

@ -100,6 +100,8 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
'rc_title' => 'Log',
'rc_type' => RC_LOG,
'rc_source' => RecentChange::SRC_LOG,
'rc_log_type' => 'delete',
'rc_log_action' => 'delete',
] + $attribs
];
@ -109,6 +111,8 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
'rc_title' => '',
'rc_type' => RC_LOG,
'rc_source' => RecentChange::SRC_LOG,
'rc_log_type' => 'delete',
'rc_log_action' => 'delete',
] + $attribs
];
}