Skip to content

Instantly share code, notes, and snippets.

@cakephp-tutorial
Created February 26, 2016 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cakephp-tutorial/c5c8af09e03642746b3e to your computer and use it in GitHub Desktop.
Save cakephp-tutorial/c5c8af09e03642746b3e to your computer and use it in GitHub Desktop.
<?php
#file /app/Test/Fixture/ContactFixture.php
class ContactFixture extends CakeTestFixture {
public $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'),
'name' => array('type' => 'string', 'null' => false),
'surname' => array('type' => 'string', 'null' => false),
);
public $records = array(
array('id' => 1, 'name' => 'Walter', 'surname' => 'Raponi' ),
array('id' => 2, 'name' => 'Emiliano', 'surname' => 'Merlin'),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment