SoftDeleteCategoryFixture.php 644 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 = [
  13. 'id' => ['type' => 'integer', 'key' => 'primary'],
  14. 'post_count' => ['type' => 'integer'],
  15. 'deleted_post_count' => ['type' => 'integer'],
  16. 'title' => ['type' => 'string', 'null' => false]];
  17. /**
  18. * Records property
  19. *
  20. * @var array
  21. */
  22. public $records = [
  23. [
  24. 'id' => 1,
  25. 'post_count' => 2,
  26. 'deleted_post_count' => 0,
  27. 'title' => 'Category A'],
  28. [
  29. 'id' => 2,
  30. 'post_count' => 0,
  31. 'deleted_post_count' => 1,
  32. 'title' => 'Category B']];
  33. }