Re-enable AbuseFilterBlockTest::testRevert

Bug: T272124
Change-Id: Ic8ee8d2ce2b04e5cd0345efdb1e8f9653ef83bf3
This commit is contained in:
Daimona Eaytoy 2021-01-15 13:01:19 +01:00
parent 77656948ba
commit 01b61b5e6a

View file

@ -147,7 +147,8 @@ class AbuseFilterBlockTest extends MediaWikiIntegrationTestCase {
* @todo This sucks. Clean it up once T255433 and T253717 are resolved
*/
public function testRevert( ?stdClass $blockRow, ?DatabaseBlockStore $blockStore, bool $expected ) {
$this->markTestSkipped( 'T272124' );
// Unset all hook handlers per T272124
$this->setService( 'HookContainer', $this->createHookContainer() );
$db = $this->createMock( IDatabase::class );
$db->method( 'select' )->willReturnCallback( function ( $tables ) use ( $blockRow ) {
return in_array( 'ipblocks', $tables, true ) && $blockRow ? [ $blockRow ] : [];