Follow-up to #2779135: "Delay" constraint allow to change system-generated password

Problem/Motivation

Noticed that non-strict comparison used for $account variable in password_policy.test

Proposed resolution

Use strict comparisons.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

l0ke created an issue. See original summary.

l0ke’s picture

Let's make it really nice.

+++ b/password_policy.test
@@ -54,7 +83,7 @@ class PasswordPolicyBaseTestCase extends DrupalWebTestCase {
-    if ($account == NULL) {
+    if ($account === NULL) {

@@ -76,7 +105,7 @@ class PasswordPolicyBaseTestCase extends DrupalWebTestCase {
-    if ($account == NULL) {
+    if ($account === NULL) {

  • AohRveTPV committed 16e8979 on 7.x-2.x authored by l0ke
    Issue #2864978 by l0ke: Use strict comparison in password_policy.test
    
AohRveTPV’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.