public function thereAreUsers(TableNode $users)
    {
        $params = $this->getWordpressParameters();

        foreach ($users->getHash() as $user) {
            if (! isset($user['user_pass'])) {
                $user['user_pass'] = $this->getRandomString();
            }

            $this->createUser($user['user_login'], $user['user_email'], $user);

            $params['users'][] = array(
                'roles'    => $this->getUserDataFromUsername('roles', $user['user_login']),
                'username' => $user['user_login'],
                'password' => $user['user_pass'],
            );
        }

        $this->setWordpressParameters($params);
    }
public function thereAreUsers(TableNode $users)
    {
        $params = $this->getWordpressParameters();

        foreach ($users->getHash() as $user) {
            if (! isset($user['user_pass'])) {
                $user['user_pass'] = $this->getRandomString();
            }

            $this->createUser($user['user_login'], $user['user_email'], $user);

            $params['users'][] = array(
                'roles'    => $this->getUserDataFromUsername('roles', $user['user_login']),
                'username' => $user['user_login'],
                'password' => $user['user_pass'],
            );
        }

        $this->setWordpressParameters($params);
    }
public function thereAreUsers ( TableNode $ users ) { $ params = $ this -> getWordpressParameters ( ) ; foreach ( $ users -> getHash ( ) as $ user ) { if ( ! isset ( $ user [ 'user_pass' ] ) ) { $ user [ 'user_pass' ] = $ this -> getRandomString ( ) ; } $ this -> createUser ( $ user [ 'user_login' ] , $ user [ 'user_email' ] , $ user ) ; $ params [ 'users' ] [ ] = array ( 'roles' => $ this -> getUserDataFromUsername ( 'roles' , $ user [ 'user_login' ] ) , 'username' => $ user [ 'user_login' ] , 'password' => $ user [ 'user_pass' ] , ) ; } $ this -> setWordpressParameters ( $ params ) ; }
Add specified user accounts.

Example: Given there are users:
| user_login | user_email        | role          |
| admin      | admin@example.com | administrator |

@Given /^(?:there are|there is a) users?:/

@param TableNode $users
Add specified user accounts .