From 9b34e635d877f883a104a38f1abd4a14870b1f9e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 22 Oct 2013 00:04:04 +0200 Subject: [PATCH] New "password should be" step --- src/SilverStripe/BehatExtension/Context/LoginContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SilverStripe/BehatExtension/Context/LoginContext.php b/src/SilverStripe/BehatExtension/Context/LoginContext.php index baf2f74..c129117 100644 --- a/src/SilverStripe/BehatExtension/Context/LoginContext.php +++ b/src/SilverStripe/BehatExtension/Context/LoginContext.php @@ -168,6 +168,6 @@ class LoginContext extends BehatContext { $member = \Member::get()->filter('Email', $id)->First(); assertNotNull($member); - assertTrue($member->checkPassword($password)); + assertTrue($member->checkPassword($password)->valid()); } }