LogableBookFixture.php 622 B

123456789101112131415161718
  1. <?php
  2. class LogableBookFixture extends CakeTestFixture {
  3. public $fields = [
  4. 'id' => ['type' => 'integer', 'key' => 'primary'],
  5. 'title' => ['type' => 'string', 'length' => 255, 'null' => false],
  6. 'weight' => ['type' => 'integer', 'null' => false]
  7. ];
  8. public $records = [
  9. ['id' => 3, 'title' => 'Sixth Book', 'weight' => 6 ],
  10. ['id' => 6, 'title' => 'Fifth Book', 'weight' => 5 ],
  11. ['id' => 2, 'title' => 'First Book', 'weight' => 1 ],
  12. ['id' => 1, 'title' => 'Second Book', 'weight' => 2 ],
  13. ['id' => 4, 'title' => 'Third Book', 'weight' => 3 ],
  14. ['id' => 5, 'title' => 'Fourth Book', 'weight' => 4 ]
  15. ];
  16. }