MultiColumnUsersFixture.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. namespace Tools\Test\Fixture;
  3. use Cake\TestSuite\Fixture\TestFixture;
  4. class MultiColumnUsersFixture extends TestFixture {
  5. /**
  6. * fields property
  7. *
  8. * @var array
  9. */
  10. public array $fields = [
  11. 'id' => ['type' => 'integer'],
  12. 'user_name' => ['type' => 'string', 'null' => false],
  13. 'email' => ['type' => 'string', 'null' => false],
  14. 'password' => ['type' => 'string', 'null' => false],
  15. 'token' => ['type' => 'string', 'null' => false],
  16. 'created' => 'datetime',
  17. 'updated' => 'datetime',
  18. '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]],
  19. ];
  20. /**
  21. * records property
  22. *
  23. * @var array
  24. */
  25. public array $records = [
  26. [
  27. 'user_name' => 'mariano',
  28. 'email' => 'mariano@example.com',
  29. 'password' => '5f4dcc3b5aa765d61d8327deb882cf99',
  30. 'token' => '12345', 'created' => '2007-03-17 01:16:23',
  31. 'updated' => '2007-03-17 01:18:31',
  32. ],
  33. [
  34. 'user_name' => 'nate',
  35. 'email' => 'nate@example.com',
  36. 'password' => '5f4dcc3b5aa765d61d8327deb882cf99',
  37. 'token' => '23456',
  38. 'created' => '2007-03-17 01:18:23',
  39. 'updated' => '2007-03-17 01:20:31',
  40. ],
  41. [
  42. 'user_name' => 'larry',
  43. 'email' => 'larry@example.com',
  44. 'password' => '5f4dcc3b5aa765d61d8327deb882cf99',
  45. 'token' => '34567',
  46. 'created' => '2007-03-17 01:20:23',
  47. 'updated' => '2007-03-17 01:22:31',
  48. ],
  49. [
  50. 'user_name' => 'garrett',
  51. 'email' => 'garrett@example.com',
  52. 'password' => '5f4dcc3b5aa765d61d8327deb882cf99',
  53. 'token' => '45678',
  54. 'created' => '2007-03-17 01:22:23',
  55. 'updated' => '2007-03-17 01:24:31',
  56. ],
  57. [
  58. 'user_name' => 'chartjes',
  59. 'email' => 'chartjes@example.com',
  60. 'password' => '5f4dcc3b5aa765d61d8327deb882cf99',
  61. 'token' => '56789',
  62. 'created' => '2007-03-17 01:22:23',
  63. 'updated' => '2007-03-17 01:24:31',
  64. ],
  65. ];
  66. }