CounterCachePostFixture.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Counter Cache Test Fixtures
  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. * @package Cake.Test.Fixture
  16. * @since CakePHP(tm) v 1.2.0.4667
  17. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  18. */
  19. /**
  20. * Short description for class.
  21. *
  22. * @package Cake.Test.Fixture
  23. */
  24. class CounterCachePostFixture extends CakeTestFixture {
  25. public $name = 'CounterCachePost';
  26. public $fields = array(
  27. 'id' => array('type' => 'integer', 'key' => 'primary'),
  28. 'title' => array('type' => 'string', 'length' => 255),
  29. 'user_id' => array('type' => 'integer', 'null' => true),
  30. 'published' => array('type' => 'boolean', 'null' => false, 'default' => 0)
  31. );
  32. public $records = array(
  33. array('id' => 1, 'title' => 'Rock and Roll', 'user_id' => 66, 'published' => false),
  34. array('id' => 2, 'title' => 'Music', 'user_id' => 66, 'published' => true),
  35. array('id' => 3, 'title' => 'Food', 'user_id' => 301, 'published' => true),
  36. );
  37. }