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

Change-Id: Ifdf6d2155ec3d51600bceaa63832bb55a71599d3
This commit is contained in:
Reedy 2020-09-24 18:25:26 +01:00
parent 816b490939
commit 533af3e870

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'] ) {