Skip to content

Commit

Permalink
Update doc blocks, optimise imports, prefer short array syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Jul 15, 2019
1 parent b05cddd commit 0454110
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/php/Authenticator/LoginHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace SilverStripe\MFA\Tests\Authenticator;

use Page;
use PHPUnit_Framework_MockObject_MockObject;
use SilverStripe\Control\Controller;
use SilverStripe\Control\HTTPRequest;
Expand Down Expand Up @@ -234,8 +233,9 @@ public function cannotSkipMFAProvider()
}

/**
* @param $memberFixture
* @param $expectedRedirect
* @param string $memberFixture
* @param bool $mfaRequiredInGrace
* @param string|null $expectedRedirect
* @dataProvider skipRegistrationProvider
*/
public function testSkipRegistration($memberFixture, $mfaRequiredInGrace = false, $expectedRedirect = null)
Expand Down Expand Up @@ -286,7 +286,7 @@ public function skipRegistrationProvider()
}

/**
* @param $memberFixture
* @param string $memberFixture
* @dataProvider methodlessMemberFixtureProvider
*/
public function testBackURLIsPreservedWhenSkipping($memberFixture)
Expand Down Expand Up @@ -486,7 +486,7 @@ public function testFinishVerificationPassesExceptionMessagesThroughFromMethodsW
}

/**
* @param $memberFixture
* @param string $memberFixture
* @dataProvider methodlessMemberFixtureProvider
*/
public function testFinishVerificationWillRedirectToTheBackURLSetAsLoginIsStarted($memberFixture)
Expand Down Expand Up @@ -572,12 +572,12 @@ protected function doLogin(Member $member, $password, $backUrl = null)
return $this->submitForm(
'MemberLoginForm_LoginForm',
null,
array(
[
'Email' => $member->Email,
'Password' => $password,
'AuthenticationMethod' => MemberAuthenticator::class,
'action_doLogin' => 1,
)
]
);
}

Expand Down

0 comments on commit 0454110

Please sign in to comment.