MessageFixture.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. */
  31. public $fields = array(
  32. 'id' => array('type' => 'integer', 'key' => 'primary'),
  33. 'random' => array('type' => 'integer', 'null' => false),
  34. 'name' => array('type' => 'string', 'null' => false),
  35. 'slug' => array('type' => 'string', 'null' => true),
  36. 'section' => array('type' => 'integer', 'null' => true),
  37. );
  38. /**
  39. * Records property
  40. *
  41. * The records are created out of sequence so that theirs id are not sequncial.
  42. * The order field values are used only in the list behavior test
  43. *
  44. * @var array
  45. */
  46. public $records = array(
  47. array('random' => 1, 'name' => 'First'),
  48. array('random' => 10, 'name' => 'Tenth'),
  49. array('random' => 4, 'name' => 'Fourth'),
  50. array('random' => 8, 'name' => 'Eigth'),
  51. array('random' => 5, 'name' => 'Fifth'),
  52. array('random' => 7, 'name' => 'Seventh'),
  53. array('random' => 3, 'name' => 'Third'),
  54. array('random' => 9, 'name' => 'Ninth'),
  55. array('random' => 2, 'name' => 'Second'),
  56. array('random' => 6, 'name' => 'Sixth'),
  57. );
  58. }