Merge "Give AbuseFilterSaveTest::testSaveFilter() a return value for selectRow"

This commit is contained in:
jenkins-bot 2020-09-24 18:00:34 +00:00 committed by Gerrit Code Review
commit a534b43c84

View file

@ -220,6 +220,11 @@ class AbuseFilterSaveTest extends MediaWikiTestCase {
$dbw->expects( $this->any() )
->method( 'insertId' )
->willReturn( 1 );
$row = new stdClass();
$row->actor_id = '1';
$dbw->expects( $this->any() )
->method( 'selectRow' )
->willReturn( $row );
$status = AbuseFilter::saveFilter( $viewEdit, $filter, $newRow, $actions, $dbw );
if ( $args['testData']['shouldFail'] ) {