root / drupal7 / modules / simpletest / tests / upgrade / drupal-6.user-password-token.database.php @ 64ad485a
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | db_insert('variable')->fields(array( |
||
3 | 'name',
|
||
4 | 'value',
|
||
5 | )) |
||
6 | ->values(array(
|
||
7 | 'name' => 'user_mail_register_no_approval_required_body', |
||
8 | 'value' => 's:97:"!password, !username, !site, !uri, !uri_brief, !mailto, !date, !login_uri, !edit_uri, !login_url.";', |
||
9 | )) |
||
10 | ->execute(); |
||
11 | |||
12 | db_insert('users')->fields(array( |
||
13 | 'uid',
|
||
14 | 'name',
|
||
15 | 'pass',
|
||
16 | 'mail',
|
||
17 | 'mode',
|
||
18 | 'sort',
|
||
19 | 'threshold',
|
||
20 | 'theme',
|
||
21 | 'signature',
|
||
22 | 'signature_format',
|
||
23 | 'created',
|
||
24 | 'access',
|
||
25 | 'login',
|
||
26 | 'status',
|
||
27 | 'timezone',
|
||
28 | 'language',
|
||
29 | 'picture',
|
||
30 | 'init',
|
||
31 | 'data',
|
||
32 | )) |
||
33 | ->values(array(
|
||
34 | 'uid' => 3, |
||
35 | 'name' => 'hashtester', |
||
36 | // This is not a valid D7 hash, but a truncated one.
|
||
37 | 'pass' => '$S$DAK00p3Dkojkf4O/UizYxenguXnjv', |
||
38 | 'mail' => 'hashtester@example.com', |
||
39 | 'mode' => '0', |
||
40 | 'sort' => '0', |
||
41 | 'threshold' => '0', |
||
42 | 'theme' => '', |
||
43 | 'signature' => '', |
||
44 | 'signature_format' => '0', |
||
45 | 'created' => '1277671599', |
||
46 | 'access' => '1277671612', |
||
47 | 'login' => '1277671612', |
||
48 | 'status' => '1', |
||
49 | 'timezone' => '-21600', |
||
50 | 'language' => '', |
||
51 | 'picture' => '', |
||
52 | 'init' => 'hashtester@example.com', |
||
53 | 'data' => 'a:0:{}', |
||
54 | )) |
||
55 | ->execute(); |