LinkableUserFixture.php 501 B

123456789101112131415161718
  1. <?php
  2. class LinkableUserFixture extends CakeTestFixture {
  3. public $fields = [
  4. 'id' => ['type' => 'integer', 'key' => 'primary'],
  5. 'username' => ['type' => 'string', 'length' => 255, 'null' => false],
  6. 'role_id' => ['type' => 'integer']
  7. ];
  8. public $records = [
  9. ['id' => 1, 'username' => 'CakePHP', 'role_id' => 1],
  10. ['id' => 2, 'username' => 'Zend', 'role_id' => 2],
  11. ['id' => 3, 'username' => 'Symfony', 'role_id' => 2],
  12. ['id' => 4, 'username' => 'CodeIgniter', 'role_id' => 3]
  13. ];
  14. }