AdFixture.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * Short description for ad_fixture.php
  4. *
  5. * Long description for ad_fixture.php
  6. *
  7. * PHP 5
  8. *
  9. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  10. *
  11. * Licensed under The MIT License
  12. * Redistributions of files must retain the above copyright notice.
  13. *
  14. * @copyright CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  15. * @link http://www.cakephp.org
  16. * @package Cake.Test.Fixture
  17. * @since 1.2
  18. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  19. */
  20. /**
  21. * AdFixture class
  22. *
  23. * @package Cake.Test.Fixture
  24. */
  25. class AdFixture extends CakeTestFixture {
  26. /**
  27. * name property
  28. *
  29. * @var string 'Ad'
  30. */
  31. public $name = 'Ad';
  32. /**
  33. * fields property
  34. *
  35. * @var array
  36. */
  37. public $fields = array(
  38. 'id' => array('type' => 'integer', 'key' => 'primary'),
  39. 'campaign_id' => array('type' => 'integer'),
  40. 'parent_id' => array('type' => 'integer'),
  41. 'lft' => array('type' => 'integer'),
  42. 'rght' => array('type' => 'integer'),
  43. 'name' => array('type' => 'string', 'length' => 255, 'null' => false)
  44. );
  45. /**
  46. * records property
  47. *
  48. * @var array
  49. */
  50. public $records = array(
  51. array('parent_id' => null, 'lft' => 1, 'rght' => 2, 'campaign_id' => 1, 'name' => 'Nordover'),
  52. array('parent_id' => null, 'lft' => 3, 'rght' => 4, 'campaign_id' => 1, 'name' => 'Statbergen'),
  53. array('parent_id' => null, 'lft' => 5, 'rght' => 6, 'campaign_id' => 1, 'name' => 'Feroy'),
  54. array('parent_id' => null, 'lft' => 7, 'rght' => 12, 'campaign_id' => 2, 'name' => 'Newcastle'),
  55. array('parent_id' => null, 'lft' => 8, 'rght' => 9, 'campaign_id' => 2, 'name' => 'Dublin'),
  56. array('parent_id' => null, 'lft' => 10, 'rght' => 11, 'campaign_id' => 2, 'name' => 'Alborg'),
  57. array('parent_id' => null, 'lft' => 13, 'rght' => 14, 'campaign_id' => 3, 'name' => 'New York')
  58. );
  59. }