DomainFixture.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * Short description for file.
  4. *
  5. * PHP versions 5
  6. *
  7. * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
  8. * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
  9. *
  10. * Licensed under The Open Group Test Suite License
  11. * Redistributions of files must retain the above copyright notice.
  12. *
  13. * @copyright Copyright 2005-2010, 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
  16. * @subpackage cake.tests.fixtures
  17. * @since CakePHP(tm) v 2.1
  18. * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
  19. */
  20. /**
  21. * Short description for class.
  22. *
  23. * @package cake
  24. * @subpackage cake.tests.fixtures
  25. */
  26. class DomainFixture extends CakeTestFixture {
  27. /**
  28. * name property
  29. *
  30. * @var string 'Domain'
  31. * @access public
  32. */
  33. public $name = 'Domain';
  34. /**
  35. * fields property
  36. *
  37. * @var array
  38. * @access public
  39. */
  40. public $fields = array(
  41. 'id' => array('type' => 'integer', 'key' => 'primary'),
  42. 'domain' => array('type' => 'string', 'null' => false),
  43. 'created' => 'datetime',
  44. 'updated' => 'datetime'
  45. );
  46. /**
  47. * records property
  48. *
  49. * @var array
  50. * @access public
  51. */
  52. public $records = array(
  53. array('domain' => 'cakephp.org', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),
  54. array('domain' => 'book.cakephp.org', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),
  55. array('domain' => 'api.cakephp.org', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),
  56. array('domain' => 'mark-story.com', 'created' => '2007-03-17 01:18:23', 'updated' => '2007-03-17 01:20:31'),
  57. array('domain' => 'tinadurocher.com', 'created' => '2007-03-17 01:18:23', 'updated' => '2007-03-17 01:20:31'),
  58. array('domain' => 'chavik.com', 'created' => '2001-02-03 00:01:02', 'updated' => '2007-03-17 01:22:31'),
  59. array('domain' => 'xintesa.com', 'created' => '2001-02-03 00:01:02', 'updated' => '2007-03-17 01:22:31'),
  60. );
  61. }