-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathVideoSettingForPaginatorFixture.php
More file actions
57 lines (50 loc) · 1.07 KB
/
VideoSettingForPaginatorFixture.php
File metadata and controls
57 lines (50 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* VideoSettingForPaginatorFixture
*
* @author Mitsuru Mutaguchi <mutaguchi@opensource-workshop.jp>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
* @copyright Copyright 2014, NetCommons Project
*/
App::uses('VideoSettingFixture', 'Videos.Test/Fixture');
/**
* VideoSettingForPaginatorFixture
*
* @author Mitsuru Mutaguchi <mutaguchi@opensource-workshop.jp>
* @package NetCommons\Videos\Test\Fixture
*/
class VideoSettingForPaginatorFixture extends VideoSettingFixture {
/**
* Model name
*
* @var string
*/
public $name = 'VideoSetting';
/**
* Full Table Name
*
* @var string
*/
public $table = 'video_settings';
/**
* Initialize the fixture.
*
* @return void
*/
public function init() {
for ($i = 11; $i <= 20; $i++) {
$this->records[$i] = array(
'block_key' => 'block_' . $i,
'total_size' => '0',
);
}
for ($i = 101; $i <= 200; $i++) {
$this->records[$i] = array(
'block_key' => 'block_' . $i,
'total_size' => '0',
);
}
parent::init();
}
}