ContentAccountFixture.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * Short description for file.
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
  8. * Copyright 2005-2012, 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-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
  15. * @package Cake.Test.Fixture
  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.Test.Fixture
  23. */
  24. class ContentAccountFixture extends CakeTestFixture {
  25. /**
  26. * name property
  27. *
  28. * @var string 'Aco'
  29. */
  30. public $name = 'ContentAccount';
  31. public $table = 'ContentAccounts';
  32. /**
  33. * fields property
  34. *
  35. * @var array
  36. */
  37. public $fields = array(
  38. 'iContentAccountsId' => array('type' => 'integer', 'key' => 'primary'),
  39. 'iContentId' => array('type' => 'integer'),
  40. 'iAccountId' => array('type' => 'integer')
  41. );
  42. /**
  43. * records property
  44. *
  45. * @var array
  46. */
  47. public $records = array(
  48. array('iContentId' => 1, 'iAccountId' => 1),
  49. array('iContentId' => 2, 'iAccountId' => 2),
  50. array('iContentId' => 3, 'iAccountId' => 3),
  51. array('iContentId' => 4, 'iAccountId' => 4),
  52. array('iContentId' => 1, 'iAccountId' => 2),
  53. array('iContentId' => 2, 'iAccountId' => 3),
  54. );
  55. }