NewsArticleFixture.php 451 B

12345678910111213141516
  1. <?php
  2. class NewsArticleFixture extends CakeTestFixture {
  3. public $fields = [
  4. 'id' => ['type' => 'integer', 'key' => 'primary'],
  5. 'title' => ['type' => 'string', 'length' => 255, 'null' => false]
  6. ];
  7. public $records = [
  8. ['id' => 1, 'title' => 'CakePHP the best framework'],
  9. ['id' => 2, 'title' => 'Zend the oldest framework'],
  10. ['id' => 3, 'title' => 'Symfony the engineers framwork'],
  11. ['id' => 4, 'title' => 'CodeIgniter wassat?']
  12. ];
  13. }