MessageFixture.php 1.7 KB

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