LegacyProductFixture.php 664 B

12345678910111213141516
  1. <?php
  2. class LegacyProductFixture extends CakeTestFixture {
  3. public $fields = array(
  4. 'product_id' => array('type' => 'integer', 'key' => 'primary'),
  5. 'name' => array('type' => 'string', 'length' => 255, 'null' => false),
  6. 'the_company_that_builds_it_id' => array('type' => 'integer'),
  7. 'the_company_that_delivers_it_id' => array('type' => 'integer')
  8. );
  9. public $records = array(
  10. array('product_id' => 1, 'name' => 'Velocipede', 'the_company_that_builds_it_id' => 1, 'the_company_that_delivers_it_id' => 3),
  11. array('product_id' => 2, 'name' => 'Oruktor Amphibolos', 'the_company_that_builds_it_id' => 2, 'the_company_that_delivers_it_id' => 2),
  12. );
  13. }