@@ -205,10 +205,10 @@ |
||
| 205 | 205 | public function getUserByColumn($column, $value) |
| 206 | 206 | { |
| 207 | 207 | $uid = db_select('users', 'u') |
| 208 | - ->fields('u', array('uid')) |
|
| 209 | - ->condition('u.' . $column, '%' . db_like($value) . '%', 'LIKE') |
|
| 210 | - ->range(0, 1) |
|
| 211 | - ->execute()->fetchField(); |
|
| 208 | + ->fields('u', array('uid')) |
|
| 209 | + ->condition('u.' . $column, '%' . db_like($value) . '%', 'LIKE') |
|
| 210 | + ->range(0, 1) |
|
| 211 | + ->execute()->fetchField(); |
|
| 212 | 212 | |
| 213 | 213 | if (empty($uid)) { |
| 214 | 214 | throw new \Exception(sprintf("User with the %s: %s not found.", $column, $value)); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $formContext = $this->getFormContext(); |
| 65 | 65 | |
| 66 | 66 | foreach (['username', 'password'] as $prop) { |
| 67 | - $formContext->fillField($this->getDrupalText($prop . '_field'), $props[$prop]); |
|
| 67 | + $formContext->fillField($this->getDrupalText($prop.'_field'), $props[$prop]); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | $this->getWorkingElement()->pressButton($this->getDrupalText('log_in')); |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | { |
| 207 | 207 | $uid = db_select('users', 'u') |
| 208 | 208 | ->fields('u', array('uid')) |
| 209 | - ->condition('u.' . $column, '%' . db_like($value) . '%', 'LIKE') |
|
| 209 | + ->condition('u.'.$column, '%'.db_like($value).'%', 'LIKE') |
|
| 210 | 210 | ->range(0, 1) |
| 211 | 211 | ->execute()->fetchField(); |
| 212 | 212 | |