-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathBlog4paginatorFixture.php
More file actions
89 lines (82 loc) · 1.54 KB
/
Blog4paginatorFixture.php
File metadata and controls
89 lines (82 loc) · 1.54 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
/**
* BlogFixture
*
* @author Noriko Arai <arai@nii.ac.jp>
* @author Ryuji AMANO <ryuji@ryus.co.jp>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
* @copyright Copyright 2014, NetCommons Project
*/
App::uses('BlogFixture', 'Blogs.Test/Fixture');
/**
* BlogFixture
*
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @package NetCommons\Blogs\Test\Fixture
* @codeCoverageIgnore
*/
class Blog4paginatorFixture extends BlogFixture {
/**
* Model name
*
* @var string
*/
public $name = 'Blog';
/**
* Records
*
* @var array
*/
public $records = array(
//Blog 1
array(
'id' => '1',
'block_id' => '1',
'key' => 'Blog_1',
'name' => 'Blog name 1',
//'language_id' => '1',
),
array(
'id' => '2',
'block_id' => '2',
'key' => 'Blog_1',
'name' => 'Blog name 1',
//'language_id' => '2',
),
//Blog 2
array(
'id' => '3',
'block_id' => '4',
'key' => 'Blog_2',
'name' => 'Blog name 2',
//'language_id' => '2',
),
//Blog 3
array(
'id' => '4',
'block_id' => '6',
'key' => 'Blog_3',
'name' => 'Blog name 2',
//'language_id' => '2',
),
//101-200まで、ページ遷移のためのテスト
);
/**
* Initialize the fixture.
*
* @return void
*/
public function init() {
for ($i = 101; $i <= 200; $i++) {
$this->records[$i] = array(
'id' => $i,
'block_id' => $i,
'key' => 'Blog_' . $i,
'name' => 'Blog_name_' . $i,
//'language_id' => '2',
);
}
parent::init();
}
}