AddonVersionsFixture.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace App\Test\Fixture;
  3. use Cake\TestSuite\Fixture\TestFixture;
  4. /**
  5. * AddonVersionsFixture
  6. *
  7. */
  8. class AddonVersionsFixture 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. 'addon_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
  19. 'path' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
  20. 'version' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
  21. 'supported_supertux_versions' => ['type' => 'string', 'length' => 31, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
  22. 'nfo' => ['type' => 'text', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
  23. '_indexes' => [
  24. 'addon_id' => ['type' => 'index', 'columns' => ['addon_id'], 'length' => []],
  25. ],
  26. '_constraints' => [
  27. 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
  28. 'addon_id' => ['type' => 'foreign', 'columns' => ['addon_id'], 'references' => ['addons', 'id'], 'update' => 'restrict', 'delete' => 'restrict', 'length' => []],
  29. ],
  30. '_options' => [
  31. 'engine' => 'InnoDB',
  32. 'collation' => 'utf8_general_ci'
  33. ],
  34. ];
  35. // @codingStandardsIgnoreEnd
  36. /**
  37. * Records
  38. *
  39. * @var array
  40. */
  41. public $records = [
  42. [
  43. 'id' => 1,
  44. 'addon_id' => 1,
  45. 'path' => 'Lorem ipsum dolor sit amet',
  46. 'version' => 1,
  47. 'supported_supertux_versions' => 'Lorem ipsum dolor sit amet',
  48. 'nfo' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
  49. ],
  50. ];
  51. }