~tsep-dev/tsep/0.9-beta

« back to all changes in this revision

Viewing changes to branches/symfony/cake/tests/fixtures/underscore_field_fixture.php

  • Committer: geoffreyfishing
  • Date: 2011-01-11 23:46:12 UTC
  • Revision ID: svn-v4:ae0de26e-ed09-4cbe-9a20-e40b4c60ac6c::125
Created a symfony branch for future migration to symfony

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Short description for file.
 
4
 *
 
5
 * PHP versions 4 and 5
 
6
 *
 
7
 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
 
8
 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 
9
 *
 
10
 *  Licensed under The Open Group Test Suite License
 
11
 *  Redistributions of files must retain the above copyright notice.
 
12
 *
 
13
 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 
14
 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
 
15
 * @package       cake
 
16
 * @subpackage    cake.tests.fixtures
 
17
 * @since         CakePHP(tm) v 1.2.0.4667
 
18
 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
 
19
 */
 
20
 
 
21
/**
 
22
 * UnderscoreFieldFixture class
 
23
 *
 
24
 * @package       cake
 
25
 * @subpackage    cake.tests.fixtures
 
26
 */
 
27
class UnderscoreFieldFixture extends CakeTestFixture {
 
28
 
 
29
/**
 
30
 * name property
 
31
 *
 
32
 * @var string 'UnderscoreField'
 
33
 * @access public
 
34
 */
 
35
        var $name = 'UnderscoreField';
 
36
        /**
 
37
 * fields property
 
38
 *
 
39
 * @var array
 
40
 * @access public
 
41
 */
 
42
        var $fields = array(
 
43
                'id' => array('type' => 'integer', 'key' => 'primary'),
 
44
                'user_id' => array('type' => 'integer', 'null' => false),
 
45
                'my_model_has_a_field' => array('type' => 'string', 'null' => false),
 
46
                'body_field' => 'text',
 
47
                'published' => array('type' => 'string', 'length' => 1, 'default' => 'N'),
 
48
                'another_field' => array('type' => 'integer', 'length' => 3),
 
49
        );
 
50
        /**
 
51
 * records property
 
52
 *
 
53
 * @var array
 
54
 * @access public
 
55
 */
 
56
        var $records = array(
 
57
                array('user_id' => 1, 'my_model_has_a_field' => 'First Article', 'body_field' => 'First Article Body', 'published' => 'Y', 'another_field' => 2),
 
58
                array('user_id' => 3, 'my_model_has_a_field' => 'Second Article', 'body_field' => 'Second Article Body', 'published' => 'Y', 'another_field' => 3),
 
59
                array('user_id' => 1, 'my_model_has_a_field' => 'Third Article', 'body_field' => 'Third Article Body', 'published' => 'Y', 'another_field' => 5),
 
60
        );
 
61
 
 
62
}