BlogPostFixture.php 411 B

12345678910111213141516
  1. <?php
  2. class BlogPostFixture extends CakeTestFixture {
  3. public $fields = array(
  4. 'id' => array('type' => 'integer', 'key' => 'primary'),
  5. 'title' => array('type' => 'string', 'length' => 255, 'null' => false),
  6. 'user_id' => array('type' => 'integer'),
  7. );
  8. public $records = array(
  9. array ('id' => 1, 'title' => 'Post 1', 'user_id' => 1),
  10. array ('id' => 2, 'title' => 'Post 2', 'user_id' => 2)
  11. );
  12. }