DatatypesFixture.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * For full copyright and license information, please see the LICENSE.txt
  8. * Redistributions of files must retain the above copyright notice
  9. *
  10. * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  11. * @link https://cakephp.org CakePHP(tm) Project
  12. * @since 3.3.4
  13. * @license https://opensource.org/licenses/mit-license.php MIT License
  14. */
  15. namespace Cake\Test\Fixture;
  16. use Cake\TestSuite\Fixture\TestFixture;
  17. /**
  18. * Fixture for testing decimal, float and bigint types
  19. */
  20. class DatatypesFixture extends TestFixture
  21. {
  22. /**
  23. * @var array
  24. */
  25. public $fields = [
  26. 'id' => ['type' => 'biginteger'],
  27. 'cost' => ['type' => 'decimal', 'length' => 20, 'precision' => 0, 'null' => true],
  28. 'floaty' => ['type' => 'float', 'null' => true],
  29. 'small' => ['type' => 'smallinteger', 'null' => true],
  30. 'tiny' => ['type' => 'tinyinteger', 'null' => true],
  31. '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
  32. ];
  33. /**
  34. * @var array
  35. */
  36. public $records = [];
  37. }