CounterCachePostNonstandardPrimaryKeyFixture.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. * @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 CounterCachePostNonstandardPrimaryKeyFixture extends CakeTestFixture {
  25. public $name = 'CounterCachePostNonstandardPrimaryKey';
  26. public $fields = array(
  27. 'pid' => array('type' => 'integer', 'key' => 'primary'),
  28. 'title' => array('type' => 'string', 'length' => 255, 'null' => false),
  29. 'uid' => array('type' => 'integer', 'null' => true),
  30. );
  31. public $records = array(
  32. array('pid' => 1, 'title' => 'Rock and Roll', 'uid' => 66),
  33. array('pid' => 2, 'title' => 'Music', 'uid' => 66),
  34. array('pid' => 3, 'title' => 'Food', 'uid' => 301),
  35. );
  36. }