MessageFixture.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * Short description for message_fixture.php
  4. *
  5. * Long description for message_fixture.php
  6. *
  7. * PHP version 5
  8. *
  9. * Copyright (c) 2008, Andy Dawson
  10. *
  11. * Licensed under The MIT License
  12. * Redistributions of files must retain the above copyright notice.
  13. *
  14. * @copyright Copyright (c) 2008, Andy Dawson
  15. * @link www.ad7six.com
  16. * @since v 1.0
  17. * @modifiedBy $LastChangedBy$
  18. * @lastModified $Date$
  19. * @license http://www.opensource.org/licenses/mit-license.php The MIT License
  20. */
  21. /**
  22. * MessageFixture class
  23. *
  24. */
  25. class MessageFixture extends CakeTestFixture {
  26. /**
  27. * fields property
  28. *
  29. * @var array
  30. * @access public
  31. */
  32. public $fields = array(
  33. 'id' => array('type' => 'integer', 'key' => 'primary'),
  34. 'random' => array('type' => 'integer', 'null' => false),
  35. 'name' => array('type' => 'string', 'null' => false),
  36. 'slug' => array('type' => 'string', 'null' => true),
  37. 'section' => array('type' => 'integer', 'null' => true),
  38. );
  39. /**
  40. * records property
  41. *
  42. * The records are created out of sequence so that theirs id are not sequncial.
  43. * The order field values are used only in the list behavior test
  44. *
  45. * @var array
  46. * @access public
  47. */
  48. public $records = array(
  49. array('random' => 1, 'name' => 'First'),
  50. array('random' => 10, 'name' => 'Tenth'),
  51. array('random' => 4, 'name' => 'Fourth'),
  52. array('random' => 8, 'name' => 'Eigth'),
  53. array('random' => 5, 'name' => 'Fifth'),
  54. array('random' => 7, 'name' => 'Seventh'),
  55. array('random' => 3, 'name' => 'Third'),
  56. array('random' => 9, 'name' => 'Ninth'),
  57. array('random' => 2, 'name' => 'Second'),
  58. array('random' => 6, 'name' => 'Sixth'),
  59. );
  60. }