LinkableCommentFixture.php 519 B

123456789101112131415161718
  1. <?php
  2. class LinkableCommentFixture extends CakeTestFixture {
  3. public $fields = [
  4. 'id' => ['type' => 'integer', 'key' => 'primary'],
  5. 'user_id' => ['type' => 'integer'],
  6. 'body' => ['type' => 'string', 'length' => 255, 'null' => false]
  7. ];
  8. public $records = [
  9. ['id' => 1, 'user_id' => 1, 'body' => 'Text'],
  10. ['id' => 2, 'user_id' => 1, 'body' => 'Text'],
  11. ['id' => 3, 'user_id' => 2, 'body' => 'Text'],
  12. ['id' => 4, 'user_id' => 3, 'body' => 'Text'],
  13. ['id' => 5, 'user_id' => 4, 'body' => 'Text']
  14. ];
  15. }