Web Interfaces of PROSUME

UsersFixture.php 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace App\Test\Fixture;
  3. use Cake\TestSuite\Fixture\TestFixture;
  4. /**
  5. * UsersFixture
  6. *
  7. */
  8. class UsersFixture extends TestFixture
  9. {
  10. /**
  11. * Fields
  12. *
  13. * @var array
  14. */
  15. // @codingStandardsIgnoreStart
  16. public $fields = [
  17. 'id' => ['type' => 'integer', 'length' => 10, 'unsigned' => true, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
  18. 'username' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'precision' => null, 'fixed' => null],
  19. 'password' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'precision' => null, 'fixed' => null],
  20. 'emailaddress' => ['type' => 'string', 'length' => 255, 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'precision' => null, 'fixed' => null],
  21. 'role' => ['type' => 'string', 'length' => 20, 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'precision' => null, 'fixed' => null],
  22. 'created' => ['type' => 'datetime', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
  23. 'modified' => ['type' => 'datetime', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
  24. '_constraints' => [
  25. 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
  26. ],
  27. '_options' => [
  28. 'engine' => 'InnoDB',
  29. 'collation' => 'utf8_general_ci'
  30. ],
  31. ];
  32. // @codingStandardsIgnoreEnd
  33. /**
  34. * Init method
  35. *
  36. * @return void
  37. */
  38. public function init()
  39. {
  40. $this->records = [
  41. [
  42. 'id' => 1,
  43. 'username' => 'Lorem ipsum dolor sit amet',
  44. 'password' => 'Lorem ipsum dolor sit amet',
  45. 'emailaddress' => 'Lorem ipsum dolor sit amet',
  46. 'role' => 'Lorem ipsum dolor ',
  47. 'created' => '2019-01-13 17:06:30',
  48. 'modified' => '2019-01-13 17:06:30'
  49. ],
  50. ];
  51. parent::init();
  52. }
  53. }