summaryrefslogtreecommitdiff
blob: abd18be71bfc028ab3aeda7620a812a1a8d1612f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

use MediaWiki\Auth\AuthenticationRequestTestCase;

/**
 * @covers AntiSpoofAuthenticationRequest
 */
class AntiSpoofAuthenticationRequestTest extends AuthenticationRequestTestCase {

	protected function getInstance( array $args = [] ) {
		return new AntiSpoofAuthenticationRequest();
	}

	public function provideLoadFromSubmission() {
		return [
			'empty' => [ [], [], [ 'ignoreAntiSpoof' => false ] ],
			'true' => [ [], [ 'ignoreAntiSpoof' => '1' ], [ 'ignoreAntiSpoof' => true ] ],
		];
	}
}