ProfilesFixture.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.5.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. /**
  18. * ProfileFixture
  19. */
  20. class ProfilesFixture extends TestFixture
  21. {
  22. /**
  23. * fields property
  24. *
  25. * @var array
  26. */
  27. public $fields = [
  28. 'id' => ['type' => 'integer', 'null' => false, 'autoIncrement' => true],
  29. 'user_id' => ['type' => 'integer', 'null' => false],
  30. 'first_name' => ['type' => 'string', 'null' => true],
  31. 'last_name' => ['type' => 'string', 'null' => true],
  32. 'is_active' => ['type' => 'boolean', 'null' => false, 'default' => true],
  33. '_constraints' => [
  34. 'primary' => ['type' => 'primary', 'columns' => ['id']],
  35. ]
  36. ];
  37. /**
  38. * records property
  39. *
  40. * @var array
  41. */
  42. public $records = [
  43. ['user_id' => 1, 'first_name' => 'mariano', 'last_name' => 'iglesias', 'is_active' => false],
  44. ['user_id' => 2, 'first_name' => 'nate', 'last_name' => 'abele', 'is_active' => false],
  45. ['user_id' => 3, 'first_name' => 'larry', 'last_name' => 'masters', 'is_active' => true],
  46. ['user_id' => 4, 'first_name' => 'garrett', 'last_name' => 'woodworth', 'is_active' => false],
  47. ];
  48. }