ToolsUsersFixture.php 836 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Tools\Test\Fixture;
  3. use Cake\TestSuite\Fixture\TestFixture;
  4. /**
  5. * ToolsUser Fixture
  6. */
  7. class ToolsUsersFixture extends TestFixture {
  8. /**
  9. * Fields
  10. *
  11. * @var array
  12. */
  13. public array $fields = [
  14. 'id' => ['type' => 'integer'],
  15. 'name' => ['type' => 'string', 'null' => true],
  16. 'password' => ['type' => 'string', 'null' => true],
  17. 'role_id' => ['type' => 'integer', 'null' => true],
  18. '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]],
  19. ];
  20. /**
  21. * Records property
  22. *
  23. * @var array
  24. */
  25. public array $records = [
  26. ['role_id' => 1, 'password' => '123456', 'name' => 'User 1'],
  27. ['role_id' => 2, 'password' => '123456', 'name' => 'User 2'],
  28. ['role_id' => 1, 'password' => '123456', 'name' => 'User 3'],
  29. ['role_id' => 3, 'password' => '123456', 'name' => 'User 4'],
  30. ];
  31. }