mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Give AbuseFilterSaveTest::testSaveFilter() a return value for selectRow
Change-Id: Ifdf6d2155ec3d51600bceaa63832bb55a71599d3
This commit is contained in:
parent
816b490939
commit
533af3e870
|
@ -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'] ) {
|
||||
|
|
Loading…
Reference in a new issue