CounterCacheUserFixture.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Short description for file.
  4. *
  5. * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
  6. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  7. *
  8. * Licensed under The MIT License
  9. * For full copyright and license information, please see the LICENSE.txt
  10. * Redistributions of files must retain the above copyright notice
  11. *
  12. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  13. * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
  14. * @since 1.2.0
  15. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  16. */
  17. namespace Cake\Test\Fixture;
  18. use Cake\TestSuite\Fixture\TestFixture;
  19. /**
  20. * Short description for class.
  21. *
  22. */
  23. class CounterCacheUserFixture extends TestFixture {
  24. public $fields = array(
  25. 'id' => ['type' => 'integer'],
  26. 'name' => ['type' => 'string', 'length' => 255, 'null' => false],
  27. 'post_count' => ['type' => 'integer', 'null' => true],
  28. 'posts_published' => ['type' => 'integer', 'null' => true],
  29. '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
  30. );
  31. public $records = array(
  32. array('id' => 66, 'name' => 'Alexander', 'post_count' => 2, 'posts_published' => 1),
  33. array('id' => 301, 'name' => 'Steven', 'post_count' => 1, 'posts_published' => 1),
  34. );
  35. }