LogFixture.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?php
  2. /**
  3. * LogFixture
  4. *
  5. */
  6. class LogFixture extends CakeTestFixture {
  7. /**
  8. * Fields
  9. *
  10. * @var array
  11. */
  12. public $fields = [
  13. 'id' => ['type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary', 'collate' => null, 'comment' => ''],
  14. 'title' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 100, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  15. 'description' => ['type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  16. 'change' => ['type' => 'text', 'null' => false, 'default' => null, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  17. 'model' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 40, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  18. 'foreign_key' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 36, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  19. 'action' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 40, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  20. 'user_id' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 36, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'],
  21. 'created' => ['type' => 'datetime', 'null' => true, 'default' => null, 'collate' => null, 'comment' => ''],
  22. 'modified' => ['type' => 'datetime', 'null' => true, 'default' => null, 'collate' => null, 'comment' => ''],
  23. 'indexes' => ['PRIMARY' => ['column' => 'id', 'unique' => 1]],
  24. 'tableParameters' => []
  25. ];
  26. /**
  27. * Records
  28. *
  29. * @var array
  30. */
  31. public $records = [
  32. [
  33. 'id' => '10',
  34. 'title' => '2',
  35. 'description' => 'PrepaidAccount "2" (1) added by User "Admin" (16).',
  36. 'change' => 'amount () => (2), user_id () => (14), created () => (2011-07-30 18:36:55)',
  37. 'model' => 'PrepaidAccount',
  38. 'foreign_key' => '1',
  39. 'action' => 'add',
  40. 'user_id' => '16',
  41. 'created' => '2011-07-30 18:36:55',
  42. 'modified' => '2011-07-30 18:36:55'
  43. ],
  44. [
  45. 'id' => '11',
  46. 'title' => '3',
  47. 'description' => 'PrepaidAccount "3" (2) added by User "Admin" (16).',
  48. 'change' => 'amount () => (3), user_id () => (14), created () => (2011-07-30 19:26:31)',
  49. 'model' => 'PrepaidAccount',
  50. 'foreign_key' => '2',
  51. 'action' => 'add',
  52. 'user_id' => '16',
  53. 'created' => '2011-07-30 19:26:31',
  54. 'modified' => '2011-07-30 19:26:31'
  55. ],
  56. [
  57. 'id' => '12',
  58. 'title' => '1',
  59. 'description' => 'PrepaidAccount "1" (3) added by User "Admin" (16).',
  60. 'change' => 'amount () => (1), user_id () => (17), created () => (2011-07-30 20:46:18)',
  61. 'model' => 'PrepaidAccount',
  62. 'foreign_key' => '3',
  63. 'action' => 'add',
  64. 'user_id' => '16',
  65. 'created' => '2011-07-30 20:46:18',
  66. 'modified' => '2011-07-30 20:46:18'
  67. ],
  68. [
  69. 'id' => '13',
  70. 'title' => '3.0000',
  71. 'description' => 'PrepaidAccount "3.0000" (2) deleted by User "Admin" (16).',
  72. 'change' => '',
  73. 'model' => 'PrepaidAccount',
  74. 'foreign_key' => '2',
  75. 'action' => 'delete',
  76. 'user_id' => '16',
  77. 'created' => '2011-07-30 20:46:21',
  78. 'modified' => '2011-07-30 20:46:21'
  79. ],
  80. [
  81. 'id' => '14',
  82. 'title' => '2.50',
  83. 'description' => 'PrepaidAccount "2.50" (4) added by User "admin@admin.de" (16).',
  84. 'change' => 'amount () => (2.50), user_id () => (20), created () => (2011-09-16 10:21:39)',
  85. 'model' => 'PrepaidAccount',
  86. 'foreign_key' => '4',
  87. 'action' => 'add',
  88. 'user_id' => '16',
  89. 'created' => '2011-09-16 10:21:39',
  90. 'modified' => '2011-09-16 10:21:39'
  91. ],
  92. [
  93. 'id' => '15',
  94. 'title' => '3.5000',
  95. 'description' => 'PrepaidAccount "3.5000" (4) updated by User "admin@admin.de" (16).',
  96. 'change' => 'amount (2.5000) => (3.5000)',
  97. 'model' => 'PrepaidAccount',
  98. 'foreign_key' => '4',
  99. 'action' => 'edit',
  100. 'user_id' => '16',
  101. 'created' => '2011-09-16 10:22:35',
  102. 'modified' => '2011-09-16 10:22:35'
  103. ],
  104. [
  105. 'id' => '16',
  106. 'title' => '4',
  107. 'description' => 'PrepaidAccount "4" (1) updated by User "user@user.de" (14).',
  108. 'change' => 'amount (2.0000) => (4)',
  109. 'model' => 'PrepaidAccount',
  110. 'foreign_key' => '1',
  111. 'action' => 'edit',
  112. 'user_id' => '14',
  113. 'created' => '2011-09-23 17:13:40',
  114. 'modified' => '2011-09-23 17:13:40'
  115. ],
  116. [
  117. 'id' => '17',
  118. 'title' => '4.0000',
  119. 'description' => 'Custom action by User "user@user.de" (14).',
  120. 'change' => '',
  121. 'model' => 'PrepaidAccount',
  122. 'foreign_key' => '1',
  123. 'action' => 'deposited (2.00)',
  124. 'user_id' => '14',
  125. 'created' => '2011-09-23 17:13:41',
  126. 'modified' => '2011-09-23 17:13:41'
  127. ],
  128. [
  129. 'id' => '18',
  130. 'title' => '19',
  131. 'description' => 'PrepaidAccount "19" (1) updated by User "user@user.de" (14).',
  132. 'change' => 'amount (4.0000) => (19)',
  133. 'model' => 'PrepaidAccount',
  134. 'foreign_key' => '1',
  135. 'action' => 'edit',
  136. 'user_id' => '14',
  137. 'created' => '2011-09-23 17:14:57',
  138. 'modified' => '2011-09-23 17:14:57'
  139. ],
  140. [
  141. 'id' => '19',
  142. 'title' => '19.0000',
  143. 'description' => 'Custom action by User "user@user.de" (14).',
  144. 'change' => '',
  145. 'model' => 'PrepaidAccount',
  146. 'foreign_key' => '1',
  147. 'action' => 'deposited (15.00)',
  148. 'user_id' => '14',
  149. 'created' => '2011-09-23 17:14:57',
  150. 'modified' => '2011-09-23 17:14:57'
  151. ],
  152. ];
  153. }