mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
New "password should be" step
This commit is contained in:
parent
8c8fd5923d
commit
a284e3183d
@ -160,4 +160,14 @@ class LoginContext extends BehatContext
|
||||
|
||||
assertNotNull($badMessage, 'Bad message not found.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then /^the password for "([^"]*)" should be "([^"]*)"$/
|
||||
*/
|
||||
public function stepPasswordForEmailShouldBe($id, $password)
|
||||
{
|
||||
$member = \Member::get()->filter('Email', $id)->First();
|
||||
assertNotNull($member);
|
||||
assertTrue($member->checkPassword($password));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user