ToggleAddressesFixture.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace Tools\Test\Fixture;
  3. use Cake\TestSuite\Fixture\TestFixture;
  4. class ToggleAddressesFixture extends TestFixture {
  5. /**
  6. * Fields
  7. *
  8. * @var array
  9. */
  10. public array $fields = [
  11. 'id' => ['type' => 'integer', 'length' => 10, 'unsigned' => true, 'null' => false, 'default' => null, 'autoIncrement' => true, 'precision' => null],
  12. 'category_id' => ['type' => 'integer', 'length' => 10, 'unsigned' => true, 'null' => true, 'default' => null, 'precision' => null, 'autoIncrement' => null],
  13. 'name' => ['type' => 'string', 'length' => 60, 'null' => false, 'default' => null, 'precision' => null, 'fixed' => null],
  14. 'primary' => ['type' => 'boolean', 'length' => null, 'null' => false, 'default' => '0', 'precision' => null],
  15. 'created' => ['type' => 'datetime', 'length' => null, 'null' => true, 'default' => null, 'precision' => null],
  16. 'modified' => ['type' => 'datetime', 'length' => null, 'null' => true, 'default' => null, 'precision' => null],
  17. '_constraints' => [
  18. 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
  19. ],
  20. ];
  21. /**
  22. * Records
  23. *
  24. * @var array
  25. */
  26. public array $records = [
  27. [
  28. 'category_id' => 1,
  29. 'name' => 'Foo',
  30. 'primary' => 1,
  31. 'created' => '2017-04-02 15:45:33',
  32. 'modified' => '2017-04-02 15:45:33',
  33. ],
  34. ];
  35. }