PingbackFixture.php 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /* Pingback Fixture generated on: 2011-03-29 16:03:41 : 1301409941 */
  3. class PingbackFixture extends CakeTestFixture {
  4. public $fields = [
  5. 'id' => ['type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'],
  6. 'foreign_id' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 36, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'],
  7. 'model' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 30, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'],
  8. 'title' => ['type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'],
  9. 'url' => ['type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'],
  10. 'ip' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 60, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'],
  11. 'host' => ['type' => 'string', 'null' => false, 'default' => null, 'length' => 100, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'],
  12. 'status' => ['type' => 'integer', 'null' => false, 'default' => '0', 'length' => 2, 'comment' => 'approved etc'],
  13. 'created' => ['type' => 'datetime', 'null' => true, 'default' => null],
  14. 'indexes' => ['PRIMARY' => ['column' => 'id', 'unique' => 1]],
  15. 'tableParameters' => []
  16. ];
  17. public $records = [
  18. [
  19. 'id' => 1,
  20. 'foreign_id' => 'Lorem ipsum dolor sit amet',
  21. 'model' => 'Lorem ipsum dolor sit amet',
  22. 'title' => 'Lorem ipsum dolor sit amet',
  23. 'url' => 'Lorem ipsum dolor sit amet',
  24. 'ip' => 'Lorem ipsum dolor sit amet',
  25. 'host' => 'Lorem ipsum dolor sit amet',
  26. 'status' => 1,
  27. 'created' => '2011-03-29 16:45:41'
  28. ],
  29. ];
  30. }