mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-15 18:19:38 +00:00
Merge "Give AbuseFilterSaveTest::testSaveFilter() a return value for selectRow"
This commit is contained in:
commit
a534b43c84
|
@ -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