統計
| ブランチ: | リビジョン:

pictcode / lib / Cake / Test / Fixture / TranslateTableFixture.php @ 0b1b8047

履歴 | 表示 | アノテート | ダウンロード (1.683 KB)

1 635eef61 spyder1211
<?php
2
/**
3
 * Short description for file.
4
 *
5
 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
6
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7
 *
8
 * Licensed under The MIT License
9
 * For full copyright and license information, please see the LICENSE.txt
10
 * Redistributions of files must retain the above copyright notice
11
 *
12
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
13
 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
14
 * @package       Cake.Test.Fixture
15
 * @since         CakePHP(tm) v 1.2.0.5669
16
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
17
 */
18
19
/**
20
 * Class TranslateTableFixture
21
 *
22
 * @package       Cake.Test.Fixture
23
 */
24
class TranslateTableFixture extends CakeTestFixture {
25
26
/**
27
 * table property
28
 *
29
 * @var string
30
 */
31
        public $table = 'another_i18n';
32
33
/**
34
 * fields property
35
 *
36
 * @var array
37
 */
38
        public $fields = array(
39
                        'id' => array('type' => 'integer', 'key' => 'primary'),
40
                        'locale' => array('type' => 'string', 'length' => 6, 'null' => false),
41
                        'model' => array('type' => 'string', 'null' => false),
42
                        'foreign_key' => array('type' => 'integer', 'null' => false),
43
                        'field' => array('type' => 'string', 'null' => false),
44
                        'content' => array('type' => 'text'));
45
46
/**
47
 * records property
48
 *
49
 * @var array
50
 */
51
        public $records = array(
52
                array('locale' => 'eng', 'model' => 'TranslatedItemWithTable', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Another Title #1'),
53
                array('locale' => 'eng', 'model' => 'TranslatedItemWithTable', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Another Content #1')
54
        );
55
}