ToolsAuthUserFixture.php 627 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * ToolsUser Fixture
  4. */
  5. class ToolsAuthUserFixture extends CakeTestFixture {
  6. /**
  7. * Fields
  8. *
  9. * @var array
  10. */
  11. public $fields = [
  12. 'id' => ['type' => 'integer', 'key' => 'primary'],
  13. 'username' => ['type' => 'string', 'null' => false],
  14. 'email' => ['type' => 'string', 'null' => false],
  15. 'password' => ['type' => 'string', 'null' => false],
  16. 'role_id' => ['type' => 'integer', 'null' => true],
  17. ];
  18. /**
  19. * Records property
  20. *
  21. * @var array
  22. */
  23. public $records = [
  24. [
  25. 'id' => 1,
  26. 'username' => 'User 1',
  27. 'email' => 'myemail@example.com',
  28. 'password' => '',
  29. 'role_id' => 1
  30. ]
  31. ];
  32. }