BidFixture.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.4667
  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 BidFixture extends CakeTestFixture {
  25. /**
  26. * name property
  27. *
  28. * @var string 'Bid'
  29. * @access public
  30. */
  31. public $name = 'Bid';
  32. /**
  33. * fields property
  34. *
  35. * @var array
  36. * @access public
  37. */
  38. public $fields = array(
  39. 'id' => array('type' => 'integer', 'key' => 'primary'),
  40. 'message_id' => array('type' => 'integer', 'null' => false),
  41. 'name' => array('type' => 'string', 'null' => false)
  42. );
  43. /**
  44. * records property
  45. *
  46. * @var array
  47. * @access public
  48. */
  49. public $records = array(
  50. array('message_id' => 1, 'name' => 'Bid 1.1'),
  51. array('message_id' => 1, 'name' => 'Bid 1.2'),
  52. array('message_id' => 3, 'name' => 'Bid 3.1'),
  53. array('message_id' => 2, 'name' => 'Bid 2.1'),
  54. array('message_id' => 2, 'name' => 'Bid 2.2')
  55. );
  56. }