Mercurial > hg > rr-repo
diff modules/simpletest/tests/upgrade/drupal-6.user-password-token.database.php @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/simpletest/tests/upgrade/drupal-6.user-password-token.database.php Wed Aug 21 18:51:11 2013 +0100 @@ -0,0 +1,55 @@ +<?php +db_insert('variable')->fields(array( + 'name', + 'value', +)) +->values(array( + 'name' => 'user_mail_register_no_approval_required_body', + 'value' => 's:97:"!password, !username, !site, !uri, !uri_brief, !mailto, !date, !login_uri, !edit_uri, !login_url.";', +)) +->execute(); + +db_insert('users')->fields(array( + 'uid', + 'name', + 'pass', + 'mail', + 'mode', + 'sort', + 'threshold', + 'theme', + 'signature', + 'signature_format', + 'created', + 'access', + 'login', + 'status', + 'timezone', + 'language', + 'picture', + 'init', + 'data', +)) +->values(array( + 'uid' => 3, + 'name' => 'hashtester', + // This is not a valid D7 hash, but a truncated one. + 'pass' => '$S$DAK00p3Dkojkf4O/UizYxenguXnjv', + 'mail' => 'hashtester@example.com', + 'mode' => '0', + 'sort' => '0', + 'threshold' => '0', + 'theme' => '', + 'signature' => '', + 'signature_format' => '0', + 'created' => '1277671599', + 'access' => '1277671612', + 'login' => '1277671612', + 'status' => '1', + 'timezone' => '-21600', + 'language' => '', + 'picture' => '', + 'init' => 'hashtester@example.com', + 'data' => 'a:0:{}', +)) +->execute();