1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Alxarafe\Test\Core\Models; |
4
|
|
|
|
5
|
|
|
use Alxarafe\Core\Models\Role; |
6
|
|
|
use PHPUnit\Framework\TestCase; |
7
|
|
|
|
8
|
|
|
class RoleTest extends TestCase |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* @var Role |
12
|
|
|
*/ |
13
|
|
|
protected $object; |
14
|
|
|
|
15
|
|
|
public function testLoad() |
16
|
|
|
{ |
17
|
|
|
|
18
|
|
|
} |
19
|
|
|
|
20
|
|
|
public function testGetOldData() |
21
|
|
|
{ |
22
|
|
|
|
23
|
|
|
} |
24
|
|
|
|
25
|
|
|
public function testGetDataArray() |
26
|
|
|
{ |
27
|
|
|
|
28
|
|
|
} |
29
|
|
|
|
30
|
|
|
public function testGetIndexesFromTable() |
31
|
|
|
{ |
32
|
|
|
|
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
public function test__construct() |
36
|
|
|
{ |
37
|
|
|
|
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
public function test__call() |
41
|
|
|
{ |
42
|
|
|
|
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
public function testSetData() |
46
|
|
|
{ |
47
|
|
|
|
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
public function testSetStructure() |
51
|
|
|
{ |
52
|
|
|
|
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
public function testSave() |
56
|
|
|
{ |
57
|
|
|
|
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
public function testSaveRecord() |
61
|
|
|
{ |
62
|
|
|
|
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
public function test__isset() |
66
|
|
|
{ |
67
|
|
|
|
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
public function testGetFieldsFromTable() |
71
|
|
|
{ |
72
|
|
|
|
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
public function testCheckStructure() |
76
|
|
|
{ |
77
|
|
|
|
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
public function testGetAllRecordsPaged() |
81
|
|
|
{ |
82
|
|
|
|
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
public function testDelete() |
86
|
|
|
{ |
87
|
|
|
|
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
public function testSearch() |
91
|
|
|
{ |
92
|
|
|
|
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
public function testGetNameField() |
96
|
|
|
{ |
97
|
|
|
|
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
public function testGetIdByName() |
101
|
|
|
{ |
102
|
|
|
|
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
public function testGetIdField() |
106
|
|
|
{ |
107
|
|
|
|
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
public function testGetTableName() |
111
|
|
|
{ |
112
|
|
|
|
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
public function testSearchQuery() |
116
|
|
|
{ |
117
|
|
|
|
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
public function testGet() |
121
|
|
|
{ |
122
|
|
|
|
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
public function test__get() |
126
|
|
|
{ |
127
|
|
|
|
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
public function testSetOldData() |
131
|
|
|
{ |
132
|
|
|
|
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
public function testGetData() |
136
|
|
|
{ |
137
|
|
|
|
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
public function test__set() |
141
|
|
|
{ |
142
|
|
|
|
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
public function testGetDefaultValues() |
146
|
|
|
{ |
147
|
|
|
|
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
public function testGetBy() |
151
|
|
|
{ |
152
|
|
|
|
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
public function testCountAllRecords() |
156
|
|
|
{ |
157
|
|
|
|
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
public function testGetAllRecordsBy() |
161
|
|
|
{ |
162
|
|
|
|
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
public function testGetAllRecords() |
166
|
|
|
{ |
167
|
|
|
|
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
public function testGetChecksFromTable() |
171
|
|
|
{ |
172
|
|
|
|
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
public function testNewRecord() |
176
|
|
|
{ |
177
|
|
|
|
178
|
|
|
} |
179
|
|
|
|
180
|
|
|
public function testGetQuotedTableName() |
181
|
|
|
{ |
182
|
|
|
|
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
public function testGetId() |
186
|
|
|
{ |
187
|
|
|
|
188
|
|
|
} |
189
|
|
|
|
190
|
|
|
public function testGetStructure() |
191
|
|
|
{ |
192
|
|
|
|
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
public function testSearchCount() |
196
|
|
|
{ |
197
|
|
|
|
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
/** |
201
|
|
|
* Sets up the fixture, for example, opens a network connection. |
202
|
|
|
* This method is called before a test is executed. |
203
|
|
|
*/ |
204
|
|
|
protected function setUp() |
205
|
|
|
{ |
206
|
|
|
$this->object = new Role(); |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* Tears down the fixture, for example, closes a network connection. |
211
|
|
|
* This method is called after a test is executed. |
212
|
|
|
*/ |
213
|
|
|
protected function tearDown() |
214
|
|
|
{ |
215
|
|
|
} |
216
|
|
|
} |
217
|
|
|
|