Blame view

tests/codeception/common/templates/fixtures/user.php 471 Bytes
4253cbec   root   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <?php

  /**

   * @var $faker \Faker\Generator

   * @var $index integer

   */

  

  $security = Yii::$app->getSecurity();

  

  return [

      'username' => $faker->userName,

      'email' => $faker->email,

      'auth_key' => $security->generateRandomString(),

      'password_hash' => $security->generatePasswordHash('password_' . $index),

      'password_reset_token' => $security->generateRandomString() . '_' . time(),

      'created_at' => time(),

      'updated_at' => time(),

  ];