MessageFixture.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. * @package mi
  17. * @subpackage mi.tests.fixtures
  18. * @since v 1.0
  19. * @modifiedBy $LastChangedBy$
  20. * @lastModified $Date$
  21. * @license http://www.opensource.org/licenses/mit-license.php The MIT License
  22. */
  23. /**
  24. * MessageFixture class
  25. *
  26. */
  27. class MessageFixture extends CakeTestFixture {
  28. /**
  29. * fields property
  30. *
  31. * @var array
  32. * @access public
  33. */
  34. public $fields = array(
  35. 'id' => array('type' => 'integer', 'key' => 'primary'),
  36. 'random' => array('type' => 'integer', 'null' => false),
  37. 'name' => array('type' => 'string', 'null' => false),
  38. 'slug' => array('type' => 'string', 'null' => true),
  39. 'section' => array('type' => 'integer', 'null' => true),
  40. );
  41. /**
  42. * records property
  43. *
  44. * The records are created out of sequence so that theirs id are not sequncial.
  45. * The order field values are used only in the list behavior test
  46. *
  47. * @var array
  48. * @access public
  49. */
  50. public $records = array(
  51. array('random' => 1, 'name' => 'First'),
  52. array('random' => 10, 'name' => 'Tenth'),
  53. array('random' => 4, 'name' => 'Fourth'),
  54. array('random' => 8, 'name' => 'Eigth'),
  55. array('random' => 5, 'name' => 'Fifth'),
  56. array('random' => 7, 'name' => 'Seventh'),
  57. array('random' => 3, 'name' => 'Third'),
  58. array('random' => 9, 'name' => 'Ninth'),
  59. array('random' => 2, 'name' => 'Second'),
  60. array('random' => 6, 'name' => 'Sixth'),
  61. );
  62. }