HomePhorge

Test migrateUserGroup.php

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Test migrateUserGroup.php

Why:

  • The maintenance scripts in core are mostly untested and testing the less complex scripts will improve the test coverage in core.
  • The migrateUserGroup.php maintenance script has a few bugs which were found by testing the script, and are fixed.

What:

  • Add an integration test for migrateUserGroup.php
  • Fix the maintenance script to:
    • Correctly report the number of affected users (instead of affected rows)
    • Clear the cache in the UserGroupManager when a batch is performed.

Bug: T371167
Change-Id: Ibd4c82332cbe83b7c5576a9e3bce6a99fa15c240

Details

Provenance
Dreamy JazzAuthored on Jul 27 2024, 8:47 AM

Event Timeline

Dreamy Jazz <dreamyjazzwikipedia@gmail.com> committed rMWfb713b5f8a57: Test migrateUserGroup.php (authored by Dreamy Jazz <dreamyjazzwikipedia@gmail.com>).Jul 28 2024, 1:24 PM

Commit No Longer Exists

This commit no longer exists in the repository.