[],
[ 'internalmode' => false ],
],
- 'Limit with parseLimits false' => [
+ 'Limit with parseLimits false (numeric)' => [
'100',
[ ApiBase::PARAM_TYPE => 'limit' ],
- '100',
+ 100,
+ [],
+ [ 'parseLimits' => false ],
+ ],
+ 'Limit with parseLimits false (max)' => [
+ 'max',
+ [ ApiBase::PARAM_TYPE => 'limit' ],
+ 'max',
+ [],
+ [ 'parseLimits' => false ],
+ ],
+ 'Limit with parseLimits false (invalid)' => [
+ 'kitten',
+ [ ApiBase::PARAM_TYPE => 'limit' ],
+ 0,
[],
[ 'parseLimits' => false ],
],
[
ApiBase::PARAM_TYPE => 'limit',
ApiBase::PARAM_MAX2 => 10,
- ApiBase::PARAM_ISMULTI => true,
],
new MWException(
'Internal error in ApiBase::getParameterFromSettings: ' .
[
ApiBase::PARAM_TYPE => 'limit',
ApiBase::PARAM_MAX => 10,
- ApiBase::PARAM_ISMULTI => true,
],
new MWException(
'Internal error in ApiBase::getParameterFromSettings: ' .
}
$status = StatusValue::newGood();
- $status->setOk( false );
+ $status->setOK( false );
try {
$mock->dieStatus( $status );
$this->fail( 'Expected exception not thrown' );