LogableBookFixture.php 677 B

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