SiteAuthorsFixture.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * For full copyright and license information, please see the LICENSE.txt
  8. * Redistributions of files must retain the above copyright notice.
  9. *
  10. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  11. * @link http://cakephp.org CakePHP(tm) Project
  12. * @since 3.0.0
  13. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  14. */
  15. namespace Cake\Test\Fixture;
  16. use Cake\TestSuite\Fixture\TestFixture;
  17. class SiteAuthorsFixture extends TestFixture
  18. {
  19. /**
  20. * fields property
  21. *
  22. * @var array
  23. */
  24. public $fields = [
  25. 'id' => ['type' => 'integer'],
  26. 'name' => ['type' => 'string', 'default' => null],
  27. 'site_id' => ['type' => 'integer', 'null' => true],
  28. '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id', 'site_id']]]
  29. ];
  30. /**
  31. * records property
  32. *
  33. * @var array
  34. */
  35. public $records = [
  36. ['id' => 1, 'name' => 'mark', 'site_id' => 1],
  37. ['id' => 2, 'name' => 'juan', 'site_id' => 2],
  38. ['id' => 3, 'name' => 'jose', 'site_id' => 2],
  39. ['id' => 4, 'name' => 'andy', 'site_id' => 1]
  40. ];
  41. }