AuthorsFixture.php 587 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Tools\Test\Fixture;
  3. use Cake\TestSuite\Fixture\TestFixture;
  4. /**
  5. * Short description for class.
  6. */
  7. class AuthorsFixture extends TestFixture {
  8. /**
  9. * fields property
  10. *
  11. * @var array
  12. */
  13. public array $fields = [
  14. 'id' => ['type' => 'integer'],
  15. 'name' => ['type' => 'string', 'default' => null],
  16. '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]],
  17. ];
  18. /**
  19. * records property
  20. *
  21. * @var array
  22. */
  23. public array $records = [
  24. ['name' => 'mariano'],
  25. ['name' => 'nate'],
  26. ['name' => 'larry'],
  27. ['name' => 'garrett'],
  28. ];
  29. }