SoftDeleteCategoryFixture.php 684 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * SoftDeleteCategoryFixture
  4. *
  5. */
  6. class SoftDeleteCategoryFixture extends CakeTestFixture {
  7. /**
  8. * Fields property
  9. *
  10. * @var array
  11. */
  12. public $fields = array(
  13. 'id' => array('type' => 'integer', 'key' => 'primary'),
  14. 'post_count' => array('type' => 'integer'),
  15. 'deleted_post_count' => array('type' => 'integer'),
  16. 'title' => array('type' => 'string', 'null' => false));
  17. /**
  18. * Records property
  19. *
  20. * @var array
  21. */
  22. public $records = array(
  23. array(
  24. 'id' => 1,
  25. 'post_count' => 2,
  26. 'deleted_post_count' => 0,
  27. 'title' => 'Category A'),
  28. array(
  29. 'id' => 2,
  30. 'post_count' => 0,
  31. 'deleted_post_count' => 1,
  32. 'title' => 'Category B'));
  33. }