CampaignFixture.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. * @since 1.2
  16. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  17. */
  18. namespace Cake\Test\Fixture;
  19. use Cake\TestSuite\Fixture\TestFixture;
  20. /**
  21. * CampaignFixture class
  22. *
  23. */
  24. class CampaignFixture extends TestFixture {
  25. /**
  26. * fields property
  27. *
  28. * @var array
  29. */
  30. public $fields = array(
  31. 'id' => ['type' => 'integer'],
  32. 'name' => ['type' => 'string', 'length' => 255, 'null' => false],
  33. '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
  34. );
  35. /**
  36. * records property
  37. *
  38. * @var array
  39. */
  40. public $records = array(
  41. array('name' => 'Hurtigruten'),
  42. array('name' => 'Colorline'),
  43. array('name' => 'Queen of Scandinavia')
  44. );
  45. }