TokensFixture.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?php
  2. namespace Tools\Test\Fixture;
  3. use Cake\TestSuite\Fixture\TestFixture;
  4. /**
  5. * TokenFixture
  6. */
  7. class TokensFixture extends TestFixture {
  8. /**
  9. * Fields
  10. *
  11. * @var array
  12. */
  13. public $fields = [
  14. 'id' => ['type' => 'integer', 'null' => false, 'default' => null, 'length' => 10],
  15. 'user_id' => ['type' => 'string', 'null' => true, 'length' => 36, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  16. 'type' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 10, 'collate' => 'utf8_unicode_ci', 'comment' => 'e.g.:activate,reactivate', 'charset' => 'utf8'],
  17. 'key' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 60, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  18. 'content' => ['type' => 'string', 'null' => true, 'default' => null, 'collate' => 'utf8_unicode_ci', 'comment' => 'can transport some information', 'charset' => 'utf8'],
  19. 'used' => ['type' => 'integer', 'null' => false, 'default' => '0', 'collate' => null, 'comment' => ''],
  20. 'created' => ['type' => 'datetime', 'null' => true, 'default' => null, 'collate' => null, 'comment' => ''],
  21. 'modified' => ['type' => 'datetime', 'null' => true, 'default' => null, 'collate' => null, 'comment' => ''],
  22. '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
  23. ];
  24. /**
  25. * Records
  26. *
  27. * @var array
  28. */
  29. public $records = [
  30. [
  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. [
  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. [
  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. [
  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. [
  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. [
  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. [
  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. [
  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. [
  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. [
  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. }