UuidFixture.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Short description for file.
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
  8. * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
  9. *
  10. * Licensed under The MIT License
  11. * Redistributions of files must retain the above copyright notice
  12. *
  13. * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
  15. * @package cake.tests.fixtures
  16. * @since CakePHP(tm) v 1.2.0.6700
  17. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  18. */
  19. /**
  20. * Short description for class.
  21. *
  22. * @package cake.tests.fixtures
  23. */
  24. class UuidFixture extends CakeTestFixture {
  25. /**
  26. * name property
  27. *
  28. * @var string 'Uuid'
  29. * @access public
  30. */
  31. public $name = 'Uuid';
  32. /**
  33. * fields property
  34. *
  35. * @var array
  36. * @access public
  37. */
  38. public $fields = array(
  39. 'id' => array('type' => 'string', 'length' => 36, 'key' => 'primary'),
  40. 'title' => 'string',
  41. 'count' => array('type' => 'integer', 'default' => 0),
  42. 'created' => 'datetime',
  43. 'updated' => 'datetime'
  44. );
  45. /**
  46. * records property
  47. *
  48. * @var array
  49. * @access public
  50. */
  51. public $records = array(
  52. array('id' => '47c36f9c-bc00-4d17-9626-4e183ca6822b', 'title' => 'Unique record 1', 'count' => 2, 'created' => '2008-03-13 01:16:23', 'updated' => '2008-03-13 01:18:31'),
  53. array('id' => '47c36f9c-f2b0-43f5-b3f7-4e183ca6822b', 'title' => 'Unique record 2', 'count' => 4, 'created' => '2008-03-13 01:18:24', 'updated' => '2008-03-13 01:20:32'),
  54. array('id' => '47c36f9c-0ffc-4084-9b03-4e183ca6822b', 'title' => 'Unique record 3', 'count' => 5, 'created' => '2008-03-13 01:20:25', 'updated' => '2008-03-13 01:22:33'),
  55. array('id' => '47c36f9c-2578-4c2e-aeab-4e183ca6822b', 'title' => 'Unique record 4', 'count' => 3, 'created' => '2008-03-13 01:22:26', 'updated' => '2008-03-13 01:24:34'),
  56. );
  57. }