AddonsFixture.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace App\Test\Fixture;
  3. use Cake\TestSuite\Fixture\TestFixture;
  4. /**
  5. * AddonsFixture
  6. *
  7. */
  8. class AddonsFixture extends TestFixture
  9. {
  10. /**
  11. * Fields
  12. *
  13. * @var array
  14. */
  15. // @codingStandardsIgnoreStart
  16. public $fields = [
  17. 'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
  18. 'name' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
  19. 'token' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
  20. '_constraints' => [
  21. 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
  22. ],
  23. '_options' => [
  24. 'engine' => 'InnoDB',
  25. 'collation' => 'utf8_general_ci'
  26. ],
  27. ];
  28. // @codingStandardsIgnoreEnd
  29. /**
  30. * Records
  31. *
  32. * @var array
  33. */
  34. public $records = [
  35. [
  36. 'id' => 1,
  37. 'name' => 'Lorem ipsum dolor sit amet',
  38. 'token' => 'Lorem ipsum dolor sit amet'
  39. ],
  40. ];
  41. }