CodeKeyFixture.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?php
  2. /**
  3. * CodeKeyFixture
  4. *
  5. */
  6. class CodeKeyFixture extends CakeTestFixture {
  7. /**
  8. * Fields
  9. *
  10. * @var array
  11. */
  12. public $fields = array(
  13. 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary', 'collate' => null, 'comment' => ''),
  14. 'user_id' => array('type' => 'string', 'null' => true, 'length' => 36, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  15. 'type' => array('type' => 'string', 'null' => false, 'length' => 10, 'collate' => 'utf8_unicode_ci', 'comment' => 'e.g.:activate,reactivate', 'charset' => 'utf8'),
  16. 'key' => array('type' => 'string', 'null' => false, 'length' => 60, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  17. 'content' => array('type' => 'string', 'null' => false, 'collate' => 'utf8_unicode_ci', 'comment' => 'can transport some information', 'charset' => 'utf8'),
  18. 'used' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'collate' => null, 'comment' => ''),
  19. 'created' => array('type' => 'datetime', 'null' => true, 'default' => null, 'collate' => null, 'comment' => ''),
  20. 'modified' => array('type' => 'datetime', 'null' => true, 'default' => null, 'collate' => null, 'comment' => ''),
  21. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
  22. 'tableParameters' => array()
  23. );
  24. /**
  25. * Records
  26. *
  27. * @var array
  28. */
  29. public $records = array(
  30. array(
  31. 'id' => '77',
  32. 'user_id' => '1',
  33. 'type' => 'qlogin',
  34. 'key' => '7k8qdcizigtudvxn2v9zep',
  35. 'content' => 'i:1;',
  36. 'used' => 0,
  37. 'created' => '2011-08-02 18:00:41',
  38. 'modified' => '2011-08-02 18:00:41'
  39. ),
  40. array(
  41. 'id' => '78',
  42. 'user_id' => '2',
  43. 'type' => 'qlogin',
  44. 'key' => '23e32tpkcmdn8x9j8n0n00',
  45. 'content' => 'i:2;',
  46. 'used' => 0,
  47. 'created' => '2011-08-02 18:00:41',
  48. 'modified' => '2011-08-02 18:00:41'
  49. ),
  50. array(
  51. 'id' => '79',
  52. 'user_id' => '1',
  53. 'type' => 'qlogin',
  54. 'key' => '3mpzed7eoewsjvyvg4vy35',
  55. 'content' => 'a:3:{s:10:"controller";s:4:"test";s:6:"action";s:3:"foo";i:0;s:3:"bar";}',
  56. 'used' => 1,
  57. 'created' => '2011-08-02 18:00:41',
  58. 'modified' => '2011-08-02 18:00:41'
  59. ),
  60. array(
  61. 'id' => '80',
  62. 'user_id' => '2',
  63. 'type' => 'qlogin',
  64. 'key' => 'af8ww4y7jxzq5n6npmjpxx',
  65. 'content' => 's:13:"/test/foo/bar";',
  66. 'used' => 1,
  67. 'created' => '2011-08-02 18:00:41',
  68. 'modified' => '2011-08-02 18:00:41'
  69. ),
  70. array(
  71. 'id' => '81',
  72. 'user_id' => '1',
  73. 'type' => 'qlogin',
  74. 'key' => '2s7i3zjw0rn009j4no552b',
  75. 'content' => 'i:1;',
  76. 'used' => 0,
  77. 'created' => '2011-08-02 18:01:16',
  78. 'modified' => '2011-08-02 18:01:16'
  79. ),
  80. array(
  81. 'id' => '82',
  82. 'user_id' => '2',
  83. 'type' => 'qlogin',
  84. 'key' => 'tro596dig63cay0ps09vre',
  85. 'content' => 'i:2;',
  86. 'used' => 0,
  87. 'created' => '2011-08-02 18:01:16',
  88. 'modified' => '2011-08-02 18:01:16'
  89. ),
  90. array(
  91. 'id' => '83',
  92. 'user_id' => '1',
  93. 'type' => 'qlogin',
  94. 'key' => 'penfangwc40x550wwvgfmu',
  95. 'content' => 'a:3:{s:10:"controller";s:4:"test";s:6:"action";s:3:"foo";i:0;s:3:"bar";}',
  96. 'used' => 1,
  97. 'created' => '2011-08-02 18:01:16',
  98. 'modified' => '2011-08-02 18:01:16'
  99. ),
  100. array(
  101. 'id' => '84',
  102. 'user_id' => '2',
  103. 'type' => 'qlogin',
  104. 'key' => '2y7m5srasm3ozej0izxbhe',
  105. 'content' => 's:13:"/test/foo/bar";',
  106. 'used' => 1,
  107. 'created' => '2011-08-02 18:01:16',
  108. 'modified' => '2011-08-02 18:01:16'
  109. ),
  110. array(
  111. 'id' => '85',
  112. 'user_id' => '1',
  113. 'type' => 'qlogin',
  114. 'key' => '5c6dp2w54ynxii2xo3c50m',
  115. 'content' => 'i:1;',
  116. 'used' => 0,
  117. 'created' => '2011-08-02 18:01:54',
  118. 'modified' => '2011-08-02 18:01:54'
  119. ),
  120. array(
  121. 'id' => '86',
  122. 'user_id' => '2',
  123. 'type' => 'qlogin',
  124. 'key' => 'fr6a0d4waue2v6hmqeyek5',
  125. 'content' => 'i:2;',
  126. 'used' => 0,
  127. 'created' => '2011-08-02 18:01:54',
  128. 'modified' => '2011-08-02 18:01:54'
  129. ),
  130. );
  131. }