|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace AppBundle\Tests\Entity; |
|
4
|
|
|
|
|
5
|
|
|
use AppBundle\Entity\Article; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:26. |
|
9
|
|
|
*/ |
|
10
|
|
|
class ArticleTest extends \PHPUnit_Framework_TestCase |
|
11
|
|
|
{ |
|
12
|
|
|
|
|
13
|
|
|
/** |
|
14
|
|
|
* @var Article |
|
15
|
|
|
*/ |
|
16
|
|
|
protected $object; |
|
17
|
|
|
|
|
18
|
|
|
/** |
|
19
|
|
|
* Sets up the fixture, for example, opens a network connection. |
|
20
|
|
|
* This method is called before a test is executed. |
|
21
|
|
|
*/ |
|
22
|
|
|
protected function setUp() { |
|
23
|
|
|
$this->object = new Article; |
|
24
|
|
|
} |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* Tears down the fixture, for example, closes a network connection. |
|
28
|
|
|
* This method is called after a test is executed. |
|
29
|
|
|
*/ |
|
30
|
|
|
protected function tearDown() { |
|
31
|
|
|
|
|
32
|
|
|
} |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @covers AppBundle\Entity\Article::getId |
|
36
|
|
|
* @todo Implement testGetId(). |
|
|
|
|
|
|
37
|
|
|
*/ |
|
38
|
|
|
public function testGetId() { |
|
39
|
|
|
// Remove the following lines when you implement this test. |
|
40
|
|
|
$this->markTestIncomplete( |
|
41
|
|
|
'This test has not been implemented yet.' |
|
42
|
|
|
); |
|
43
|
|
|
} |
|
44
|
|
|
|
|
45
|
|
|
/** |
|
46
|
|
|
* @covers AppBundle\Entity\Article::setName |
|
47
|
|
|
* @todo Implement testSetName(). |
|
|
|
|
|
|
48
|
|
|
*/ |
|
49
|
|
|
public function testSetName() { |
|
50
|
|
|
// Remove the following lines when you implement this test. |
|
51
|
|
|
$this->markTestIncomplete( |
|
52
|
|
|
'This test has not been implemented yet.' |
|
53
|
|
|
); |
|
54
|
|
|
} |
|
55
|
|
|
|
|
56
|
|
|
/** |
|
57
|
|
|
* @covers AppBundle\Entity\Article::getName |
|
58
|
|
|
* @todo Implement testGetName(). |
|
|
|
|
|
|
59
|
|
|
*/ |
|
60
|
|
|
public function testGetName() { |
|
61
|
|
|
// Remove the following lines when you implement this test. |
|
62
|
|
|
$this->markTestIncomplete( |
|
63
|
|
|
'This test has not been implemented yet.' |
|
64
|
|
|
); |
|
65
|
|
|
} |
|
66
|
|
|
|
|
67
|
|
|
/** |
|
68
|
|
|
* @covers AppBundle\Entity\Article::setPackaging |
|
69
|
|
|
* @todo Implement testSetPackaging(). |
|
|
|
|
|
|
70
|
|
|
*/ |
|
71
|
|
|
public function testSetPackaging() { |
|
72
|
|
|
// Remove the following lines when you implement this test. |
|
73
|
|
|
$this->markTestIncomplete( |
|
74
|
|
|
'This test has not been implemented yet.' |
|
75
|
|
|
); |
|
76
|
|
|
} |
|
77
|
|
|
|
|
78
|
|
|
/** |
|
79
|
|
|
* @covers AppBundle\Entity\Article::getPackaging |
|
80
|
|
|
* @todo Implement testGetPackaging(). |
|
|
|
|
|
|
81
|
|
|
*/ |
|
82
|
|
|
public function testGetPackaging() { |
|
83
|
|
|
// Remove the following lines when you implement this test. |
|
84
|
|
|
$this->markTestIncomplete( |
|
85
|
|
|
'This test has not been implemented yet.' |
|
86
|
|
|
); |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* @covers AppBundle\Entity\Article::setPrice |
|
91
|
|
|
* @todo Implement testSetPrice(). |
|
|
|
|
|
|
92
|
|
|
*/ |
|
93
|
|
|
public function testSetPrice() { |
|
94
|
|
|
// Remove the following lines when you implement this test. |
|
95
|
|
|
$this->markTestIncomplete( |
|
96
|
|
|
'This test has not been implemented yet.' |
|
97
|
|
|
); |
|
98
|
|
|
} |
|
99
|
|
|
|
|
100
|
|
|
/** |
|
101
|
|
|
* @covers AppBundle\Entity\Article::getPrice |
|
102
|
|
|
* @todo Implement testGetPrice(). |
|
|
|
|
|
|
103
|
|
|
*/ |
|
104
|
|
|
public function testGetPrice() { |
|
105
|
|
|
// Remove the following lines when you implement this test. |
|
106
|
|
|
$this->markTestIncomplete( |
|
107
|
|
|
'This test has not been implemented yet.' |
|
108
|
|
|
); |
|
109
|
|
|
} |
|
110
|
|
|
|
|
111
|
|
|
/** |
|
112
|
|
|
* @covers AppBundle\Entity\Article::setQuantity |
|
113
|
|
|
* @todo Implement testSetQuantity(). |
|
|
|
|
|
|
114
|
|
|
*/ |
|
115
|
|
|
public function testSetQuantity() { |
|
116
|
|
|
// Remove the following lines when you implement this test. |
|
117
|
|
|
$this->markTestIncomplete( |
|
118
|
|
|
'This test has not been implemented yet.' |
|
119
|
|
|
); |
|
120
|
|
|
} |
|
121
|
|
|
|
|
122
|
|
|
/** |
|
123
|
|
|
* @covers AppBundle\Entity\Article::getQuantity |
|
124
|
|
|
* @todo Implement testGetQuantity(). |
|
|
|
|
|
|
125
|
|
|
*/ |
|
126
|
|
|
public function testGetQuantity() { |
|
127
|
|
|
// Remove the following lines when you implement this test. |
|
128
|
|
|
$this->markTestIncomplete( |
|
129
|
|
|
'This test has not been implemented yet.' |
|
130
|
|
|
); |
|
131
|
|
|
} |
|
132
|
|
|
|
|
133
|
|
|
/** |
|
134
|
|
|
* @covers AppBundle\Entity\Article::setMinstock |
|
135
|
|
|
* @todo Implement testSetMinstock(). |
|
|
|
|
|
|
136
|
|
|
*/ |
|
137
|
|
|
public function testSetMinstock() { |
|
138
|
|
|
// Remove the following lines when you implement this test. |
|
139
|
|
|
$this->markTestIncomplete( |
|
140
|
|
|
'This test has not been implemented yet.' |
|
141
|
|
|
); |
|
142
|
|
|
} |
|
143
|
|
|
|
|
144
|
|
|
/** |
|
145
|
|
|
* @covers AppBundle\Entity\Article::getMinstock |
|
146
|
|
|
* @todo Implement testGetMinstock(). |
|
|
|
|
|
|
147
|
|
|
*/ |
|
148
|
|
|
public function testGetMinstock() { |
|
149
|
|
|
// Remove the following lines when you implement this test. |
|
150
|
|
|
$this->markTestIncomplete( |
|
151
|
|
|
'This test has not been implemented yet.' |
|
152
|
|
|
); |
|
153
|
|
|
} |
|
154
|
|
|
|
|
155
|
|
|
/** |
|
156
|
|
|
* @covers AppBundle\Entity\Article::setSupplier |
|
157
|
|
|
* @todo Implement testSetSupplier(). |
|
|
|
|
|
|
158
|
|
|
*/ |
|
159
|
|
|
public function testSetSupplier() { |
|
160
|
|
|
// Remove the following lines when you implement this test. |
|
161
|
|
|
$this->markTestIncomplete( |
|
162
|
|
|
'This test has not been implemented yet.' |
|
163
|
|
|
); |
|
164
|
|
|
} |
|
165
|
|
|
|
|
166
|
|
|
/** |
|
167
|
|
|
* @covers AppBundle\Entity\Article::getSupplier |
|
168
|
|
|
* @todo Implement testGetSupplier(). |
|
|
|
|
|
|
169
|
|
|
*/ |
|
170
|
|
|
public function testGetSupplier() { |
|
171
|
|
|
// Remove the following lines when you implement this test. |
|
172
|
|
|
$this->markTestIncomplete( |
|
173
|
|
|
'This test has not been implemented yet.' |
|
174
|
|
|
); |
|
175
|
|
|
} |
|
176
|
|
|
|
|
177
|
|
|
/** |
|
178
|
|
|
* @covers AppBundle\Entity\Article::setUnitStorage |
|
179
|
|
|
* @todo Implement testSetUnitStorage(). |
|
|
|
|
|
|
180
|
|
|
*/ |
|
181
|
|
|
public function testSetUnitStorage() { |
|
182
|
|
|
// Remove the following lines when you implement this test. |
|
183
|
|
|
$this->markTestIncomplete( |
|
184
|
|
|
'This test has not been implemented yet.' |
|
185
|
|
|
); |
|
186
|
|
|
} |
|
187
|
|
|
|
|
188
|
|
|
/** |
|
189
|
|
|
* @covers AppBundle\Entity\Article::getUnitStorage |
|
190
|
|
|
* @todo Implement testGetUnitStorage(). |
|
|
|
|
|
|
191
|
|
|
*/ |
|
192
|
|
|
public function testGetUnitStorage() { |
|
193
|
|
|
// Remove the following lines when you implement this test. |
|
194
|
|
|
$this->markTestIncomplete( |
|
195
|
|
|
'This test has not been implemented yet.' |
|
196
|
|
|
); |
|
197
|
|
|
} |
|
198
|
|
|
|
|
199
|
|
|
/** |
|
200
|
|
|
* @covers AppBundle\Entity\Article::addZoneStorage |
|
201
|
|
|
* @todo Implement testAddZoneStorage(). |
|
|
|
|
|
|
202
|
|
|
*/ |
|
203
|
|
|
public function testAddZoneStorage() { |
|
204
|
|
|
// Remove the following lines when you implement this test. |
|
205
|
|
|
$this->markTestIncomplete( |
|
206
|
|
|
'This test has not been implemented yet.' |
|
207
|
|
|
); |
|
208
|
|
|
} |
|
209
|
|
|
|
|
210
|
|
|
/** |
|
211
|
|
|
* @covers AppBundle\Entity\Article::removeZoneStorage |
|
212
|
|
|
* @todo Implement testRemoveZoneStorage(). |
|
|
|
|
|
|
213
|
|
|
*/ |
|
214
|
|
|
public function testRemoveZoneStorage() { |
|
215
|
|
|
// Remove the following lines when you implement this test. |
|
216
|
|
|
$this->markTestIncomplete( |
|
217
|
|
|
'This test has not been implemented yet.' |
|
218
|
|
|
); |
|
219
|
|
|
} |
|
220
|
|
|
|
|
221
|
|
|
/** |
|
222
|
|
|
* @covers AppBundle\Entity\Article::getZoneStorages |
|
223
|
|
|
* @todo Implement testGetZoneStorages(). |
|
|
|
|
|
|
224
|
|
|
*/ |
|
225
|
|
|
public function testGetZoneStorages() { |
|
226
|
|
|
// Remove the following lines when you implement this test. |
|
227
|
|
|
$this->markTestIncomplete( |
|
228
|
|
|
'This test has not been implemented yet.' |
|
229
|
|
|
); |
|
230
|
|
|
} |
|
231
|
|
|
|
|
232
|
|
|
/** |
|
233
|
|
|
* @covers AppBundle\Entity\Article::setFamilyLog |
|
234
|
|
|
* @todo Implement testSetFamilyLog(). |
|
|
|
|
|
|
235
|
|
|
*/ |
|
236
|
|
|
public function testSetFamilyLog() { |
|
237
|
|
|
// Remove the following lines when you implement this test. |
|
238
|
|
|
$this->markTestIncomplete( |
|
239
|
|
|
'This test has not been implemented yet.' |
|
240
|
|
|
); |
|
241
|
|
|
} |
|
242
|
|
|
|
|
243
|
|
|
/** |
|
244
|
|
|
* @covers AppBundle\Entity\Article::getFamilyLog |
|
245
|
|
|
* @todo Implement testGetFamilyLog(). |
|
|
|
|
|
|
246
|
|
|
*/ |
|
247
|
|
|
public function testGetFamilyLog() { |
|
248
|
|
|
// Remove the following lines when you implement this test. |
|
249
|
|
|
$this->markTestIncomplete( |
|
250
|
|
|
'This test has not been implemented yet.' |
|
251
|
|
|
); |
|
252
|
|
|
} |
|
253
|
|
|
|
|
254
|
|
|
/** |
|
255
|
|
|
* @covers AppBundle\Entity\Article::setSubFamilyLog |
|
256
|
|
|
* @todo Implement testSetSubFamilyLog(). |
|
|
|
|
|
|
257
|
|
|
*/ |
|
258
|
|
|
public function testSetSubFamilyLog() { |
|
259
|
|
|
// Remove the following lines when you implement this test. |
|
260
|
|
|
$this->markTestIncomplete( |
|
261
|
|
|
'This test has not been implemented yet.' |
|
262
|
|
|
); |
|
263
|
|
|
} |
|
264
|
|
|
|
|
265
|
|
|
/** |
|
266
|
|
|
* @covers AppBundle\Entity\Article::getSubFamilyLog |
|
267
|
|
|
* @todo Implement testGetSubFamilyLog(). |
|
|
|
|
|
|
268
|
|
|
*/ |
|
269
|
|
|
public function testGetSubFamilyLog() { |
|
270
|
|
|
// Remove the following lines when you implement this test. |
|
271
|
|
|
$this->markTestIncomplete( |
|
272
|
|
|
'This test has not been implemented yet.' |
|
273
|
|
|
); |
|
274
|
|
|
} |
|
275
|
|
|
|
|
276
|
|
|
/** |
|
277
|
|
|
* @covers AppBundle\Entity\Article::setActive |
|
278
|
|
|
* @todo Implement testSetActive(). |
|
|
|
|
|
|
279
|
|
|
*/ |
|
280
|
|
|
public function testSetActive() { |
|
281
|
|
|
// Remove the following lines when you implement this test. |
|
282
|
|
|
$this->markTestIncomplete( |
|
283
|
|
|
'This test has not been implemented yet.' |
|
284
|
|
|
); |
|
285
|
|
|
} |
|
286
|
|
|
|
|
287
|
|
|
/** |
|
288
|
|
|
* @covers AppBundle\Entity\Article::isActive |
|
289
|
|
|
* @todo Implement testIsActive(). |
|
|
|
|
|
|
290
|
|
|
*/ |
|
291
|
|
|
public function testIsActive() { |
|
292
|
|
|
// Remove the following lines when you implement this test. |
|
293
|
|
|
$this->markTestIncomplete( |
|
294
|
|
|
'This test has not been implemented yet.' |
|
295
|
|
|
); |
|
296
|
|
|
} |
|
297
|
|
|
|
|
298
|
|
|
/** |
|
299
|
|
|
* @covers AppBundle\Entity\Article::setSlug |
|
300
|
|
|
* @todo Implement testSetSlug(). |
|
|
|
|
|
|
301
|
|
|
*/ |
|
302
|
|
|
public function testSetSlug() { |
|
303
|
|
|
// Remove the following lines when you implement this test. |
|
304
|
|
|
$this->markTestIncomplete( |
|
305
|
|
|
'This test has not been implemented yet.' |
|
306
|
|
|
); |
|
307
|
|
|
} |
|
308
|
|
|
|
|
309
|
|
|
/** |
|
310
|
|
|
* @covers AppBundle\Entity\Article::getSlug |
|
311
|
|
|
* @todo Implement testGetSlug(). |
|
|
|
|
|
|
312
|
|
|
*/ |
|
313
|
|
|
public function testGetSlug() { |
|
314
|
|
|
// Remove the following lines when you implement this test. |
|
315
|
|
|
$this->markTestIncomplete( |
|
316
|
|
|
'This test has not been implemented yet.' |
|
317
|
|
|
); |
|
318
|
|
|
} |
|
319
|
|
|
|
|
320
|
|
|
/** |
|
321
|
|
|
* @covers AppBundle\Entity\Article::__toString |
|
322
|
|
|
* @todo Implement test__toString(). |
|
|
|
|
|
|
323
|
|
|
*/ |
|
324
|
|
|
public function test__toString() { |
|
|
|
|
|
|
325
|
|
|
// Remove the following lines when you implement this test. |
|
326
|
|
|
$this->markTestIncomplete( |
|
327
|
|
|
'This test has not been implemented yet.' |
|
328
|
|
|
); |
|
329
|
|
|
} |
|
330
|
|
|
|
|
331
|
|
|
} |
|
332
|
|
|
|
This check looks
TODOcomments that have been left in the code.``TODO``s show that something is left unfinished and should be attended to.