| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- class LogableLogFixture extends CakeTestFixture {
- public $fields = array(
- 'id' => array('type' => 'integer', 'key' => 'primary'),
- 'title' => array(
- 'type' => 'string',
- 'length' => 255,
- 'null' => false),
- 'description' => array(
- 'type' => 'string',
- 'length' => 255,
- 'null' => false),
- 'model' => array(
- 'type' => 'string',
- 'length' => 255,
- 'null' => false),
- 'foreign_id' => array('type' => 'integer', 'null' => false),
- 'action' => array(
- 'type' => 'string',
- 'length' => 25,
- 'null' => false),
- 'user_id' => array('type' => 'integer', 'null' => false),
- 'change' => array(
- 'type' => 'string',
- 'length' => 255,
- 'null' => false),
- 'created' => array('type' => 'datetime', 'null' => false, 'default' => NULL, 'collate' => NULL, 'comment' => ''),
- 'modified' => array('type' => 'datetime', 'null' => false, 'default' => NULL, 'collate' => NULL, 'comment' => ''),
- 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
- 'tableParameters' => array()
- );
- public $records = array(
- array(
- 'id' => 1,
- 'title' => 'Fifth Book',
- 'description' => 'LogableBook "Fifth Book" (6) created by LogableUser "Alexander" (66).',
- 'model' => 'LogableBook',
- 'foreign_id' => 6,
- 'action' => 'add',
- 'user_id' => 66,
- 'change' => 'title'),
- array(
- 'id' => 2,
- 'title' => 'Fifth Book',
- 'description' => 'LogableBook "Fifth Book" (6) updated by LogableUser "Alexander" (66).',
- 'model' => 'LogableBook',
- 'foreign_id' => 6,
- 'action' => 'edit',
- 'user_id' => 66,
- 'change' => 'title'),
- array(
- 'id' => 3,
- 'title' => 'Steven',
- 'description' => 'User "Steven" (301) updated by LogableUser "Steven" (301).',
- 'model' => 'LogableUser',
- 'foreign_id' => 301,
- 'action' => 'edit',
- 'user_id' => 301,
- 'change' => 'name'),
- array(
- 'id' => 4,
- 'title' => 'Fifth Book',
- 'description' => 'LogableBook "Fifth Book" (6) deleted by LogableUser "Alexander" (66).',
- 'model' => 'LogableBook',
- 'foreign_id' => 6,
- 'action' => 'delete',
- 'user_id' => 66,
- 'change' => ''),
- array(
- 'id' => 5,
- 'title' => 'New Book',
- 'description' => 'LogableBook "New Book" (7) added by LogableUser "Steven" (301).',
- 'model' => 'LogableBook',
- 'foreign_id' => 7,
- 'action' => 'add',
- 'user_id' => 301,
- 'change' => 'title'),
- );
- }
|