mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
3a4a49ef03
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4667 3807eeeb-6ff5-0310-8944-8be069107fe0
21 lines
No EOL
1 KiB
PHP
21 lines
No EOL
1 KiB
PHP
<?php
|
|
|
|
class ArticleFixture extends CakeTestFixture {
|
|
var $name = 'Article';
|
|
var $fields = array(
|
|
'id' => array('type' => 'integer', 'key' => 'primary'),
|
|
'user_id' => array('type' => 'integer', 'null' => false),
|
|
'title' => array('type' => 'string', 'null' => false),
|
|
'body' => 'text',
|
|
'published' => array('type' => 'string', 'length' => 1, 'default' => 'N'),
|
|
'created' => 'datetime',
|
|
'updated' => 'datetime'
|
|
);
|
|
var $records = array(
|
|
array ('id' => 1, 'user_id' => 1, 'title' => 'First Article', 'body' => 'First Article Body', 'published' => 'Y', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'),
|
|
array ('id' => 2, 'user_id' => 3, 'title' => 'Second Article', 'body' => 'Second Article Body', 'published' => 'Y', 'created' => '2007-03-18 10:41:23', 'updated' => '2007-03-18 10:43:31'),
|
|
array ('id' => 3, 'user_id' => 1, 'title' => 'Third Article', 'body' => 'Third Article Body', 'published' => 'Y', 'created' => '2007-03-18 10:43:23', 'updated' => '2007-03-18 10:45:31')
|
|
);
|
|
}
|
|
|
|
?>
|