ContentAccountFixture.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 ContentAccountFixture extends CakeTestFixture {
  25. /**
  26. * name property
  27. *
  28. * @var string 'Aco'
  29. * @access public
  30. */
  31. public $name = 'ContentAccount';
  32. public $table = 'ContentAccounts';
  33. /**
  34. * fields property
  35. *
  36. * @var array
  37. * @access public
  38. */
  39. public $fields = array(
  40. 'iContentAccountsId' => array('type' => 'integer', 'key' => 'primary'),
  41. 'iContentId' => array('type' => 'integer'),
  42. 'iAccountId' => array('type' => 'integer')
  43. );
  44. /**
  45. * records property
  46. *
  47. * @var array
  48. * @access public
  49. */
  50. public $records = array(
  51. array('iContentId' => 1, 'iAccountId' => 1),
  52. array('iContentId' => 2, 'iAccountId' => 2),
  53. array('iContentId' => 3, 'iAccountId' => 3),
  54. array('iContentId' => 4, 'iAccountId' => 4),
  55. array('iContentId' => 1, 'iAccountId' => 2),
  56. array('iContentId' => 2, 'iAccountId' => 3),
  57. );
  58. }