mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Re-enable AbuseFilterBlockTest::testRevert
Bug: T272124 Change-Id: Ic8ee8d2ce2b04e5cd0345efdb1e8f9653ef83bf3
This commit is contained in:
parent
77656948ba
commit
01b61b5e6a
|
@ -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 ] : [];
|
||||
|
|
Loading…
Reference in a new issue