ProductUpdateAllFixture.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 ProductUpdateAllFixture extends CakeTestFixture {
  25. public $name = 'ProductUpdateAll';
  26. public $table = 'product_update_all';
  27. public $fields = array(
  28. 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'),
  29. 'name' => array('type' => 'string', 'null' => false, 'length' => 29),
  30. 'groupcode' => array('type' => 'integer', 'null' => false, 'length' => 4),
  31. 'group_id' => array('type' => 'integer', 'null' => false, 'length' => 8),
  32. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
  33. );
  34. public $records = array(
  35. array(
  36. 'id' => 1,
  37. 'name' => 'product one',
  38. 'groupcode' => 120,
  39. 'group_id' => 1
  40. ),
  41. array(
  42. 'id' => 2,
  43. 'name' => 'product two',
  44. 'groupcode' => 120,
  45. 'group_id' => 1
  46. ),
  47. array(
  48. 'id' => 3,
  49. 'name' => 'product three',
  50. 'groupcode' => 125,
  51. 'group_id' => 2
  52. ),
  53. array(
  54. 'id' => 4,
  55. 'name' => 'product four',
  56. 'groupcode' => 135,
  57. 'group_id' => 4
  58. ),
  59. );
  60. }