LegacyProductFixture.php 624 B

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