GroupUpdateAllFixture.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.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. array(
  39. 'id' => 2,
  40. 'name' => 'group two',
  41. 'code' => 125),
  42. array(
  43. 'id' => 3,
  44. 'name' => 'group three',
  45. 'code' => 130),
  46. array(
  47. 'id' => 4,
  48. 'name' => 'group four',
  49. 'code' => 135)
  50. );
  51. }