On a fresh installation of MediaWiki as of b347d8e where phpunit.php passed with no errors or failures, installing latest version of CheckUser as of 7a43255 and running the update script results in phpunit returning this error message:
UserTest::testAutoblockCookiesDisabled MWException: Block::delete() requires that the mId member be filled /var/www/html/includes/Block.php:459 /var/www/html/tests/phpunit/includes/user/UserTest.php:697 /var/www/html/tests/phpunit/MediaWikiTestCase.php:416 /var/www/html/maintenance/doMaintenance.php:92
Not sure why it only happens after CheckUser is installed, and disappears if I remove CheckUser from LocalSettings.php.
While investigating it a bit more, I came to the understanding that $block->getId() returns 0 for the block created in that function.
Notifying @MusikAnimal, @Tgr, @Krinkle and @aaron who are among the latest contributors to this part of code.