Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12345 anikendra 1
<?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.4667
16
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
17
 */
18
 
19
/**
20
 * Class ProductUpdateAllFixture
21
 *
22
 * @package       Cake.Test.Fixture
23
 */
24
class ProductUpdateAllFixture extends CakeTestFixture {
25
 
26
	public $table = 'product_update_all';
27
 
28
	public $fields = array(
29
		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'),
30
		'name' => array('type' => 'string', 'null' => false, 'length' => 29),
31
		'groupcode' => array('type' => 'integer', 'null' => false, 'length' => 4),
32
		'group_id' => array('type' => 'integer', 'null' => false, 'length' => 8),
33
		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
34
	);
35
 
36
	public $records = array(
37
		array(
38
			'id' => 1,
39
			'name' => 'product one',
40
			'groupcode' => 120,
41
			'group_id' => 1
42
		),
43
		array(
44
			'id' => 2,
45
			'name' => 'product two',
46
			'groupcode' => 120,
47
			'group_id' => 1
48
		),
49
		array(
50
			'id' => 3,
51
			'name' => 'product three',
52
			'groupcode' => 125,
53
			'group_id' => 2
54
		),
55
		array(
56
			'id' => 4,
57
			'name' => 'product four',
58
			'groupcode' => 135,
59
			'group_id' => 4
60
		),
61
		);
62
}