ArmorsPlayerFixture.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 2.1
  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 ArmorsPlayerFixture extends CakeTestFixture {
  25. /**
  26. * name property
  27. *
  28. * @var string 'ArmorsPlayer'
  29. */
  30. public $name = 'ArmorsPlayer';
  31. /**
  32. * Datasource
  33. *
  34. * Used for Multi database fixture test
  35. *
  36. * @var string 'test_database_three'
  37. */
  38. public $useDbConfig = 'test_database_three';
  39. /**
  40. * fields property
  41. *
  42. * @var array
  43. */
  44. public $fields = array(
  45. 'id' => array('type' => 'integer', 'key' => 'primary'),
  46. 'player_id' => array('type' => 'integer', 'null' => false),
  47. 'armor_id' => array('type' => 'integer', 'null' => false),
  48. 'broken' => array('type' => 'boolean', 'null' => false, 'default' => false),
  49. 'created' => 'datetime',
  50. 'updated' => 'datetime'
  51. );
  52. /**
  53. * records property
  54. *
  55. * @var array
  56. */
  57. public $records = array(
  58. array('player_id' => 1, 'armor_id' => 1, 'broken' => false),
  59. array('player_id' => 2, 'armor_id' => 2, 'broken' => false),
  60. array('player_id' => 3, 'armor_id' => 3, 'broken' => false),
  61. );
  62. }