GroupUpdateAllFixture.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 GroupUpdateAllFixture extends CakeTestFixture {
  25. public $name = 'GroupUpdateAll';
  26. public $table = 'group_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. 'code' => array('type' => 'integer', 'null' => false, 'length' => 4),
  31. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
  32. );
  33. public $records = array(
  34. array(
  35. 'id' => 1,
  36. 'name' => 'group one',
  37. 'code' => 120
  38. ),
  39. array(
  40. 'id' => 2,
  41. 'name' => 'group two',
  42. 'code' => 125
  43. ),
  44. array(
  45. 'id' => 3,
  46. 'name' => 'group three',
  47. 'code' => 130
  48. ),
  49. array(
  50. 'id' => 4,
  51. 'name' => 'group four',
  52. 'code' => 135
  53. ),
  54. );
  55. }