SoftDeleteCategoryFixture.php 570 B

123456789101112131415161718192021222324252627282930313233
  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. 'title' => array('type' => 'string', 'null' => false));
  16. /**
  17. * Records property
  18. *
  19. * @var array
  20. */
  21. public $records = array(
  22. array(
  23. 'id' => 1,
  24. 'post_count' => 2,
  25. 'title' => 'Category A'),
  26. array(
  27. 'id' => 2,
  28. 'post_count' => 0,
  29. 'title' => 'Category B'));
  30. }