|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace AppBundle\Entity; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:24. |
|
7
|
|
|
*/ |
|
8
|
|
View Code Duplication |
class SettingsTest extends \PHPUnit_Framework_TestCase { |
|
|
|
|
|
|
9
|
|
|
|
|
10
|
|
|
/** |
|
11
|
|
|
* @var Settings |
|
12
|
|
|
*/ |
|
13
|
|
|
protected $object; |
|
14
|
|
|
|
|
15
|
|
|
/** |
|
16
|
|
|
* Sets up the fixture, for example, opens a network connection. |
|
17
|
|
|
* This method is called before a test is executed. |
|
18
|
|
|
*/ |
|
19
|
|
|
protected function setUp() { |
|
20
|
|
|
$this->object = new Settings; |
|
21
|
|
|
} |
|
22
|
|
|
|
|
23
|
|
|
/** |
|
24
|
|
|
* Tears down the fixture, for example, closes a network connection. |
|
25
|
|
|
* This method is called after a test is executed. |
|
26
|
|
|
*/ |
|
27
|
|
|
protected function tearDown() { |
|
28
|
|
|
|
|
29
|
|
|
} |
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* @covers AppBundle\Entity\Settings::getId |
|
33
|
|
|
* @todo Implement testGetId(). |
|
34
|
|
|
*/ |
|
35
|
|
|
public function testGetId() { |
|
36
|
|
|
// Remove the following lines when you implement this test. |
|
37
|
|
|
$this->markTestIncomplete( |
|
38
|
|
|
'This test has not been implemented yet.' |
|
39
|
|
|
); |
|
40
|
|
|
} |
|
41
|
|
|
|
|
42
|
|
|
/** |
|
43
|
|
|
* @covers AppBundle\Entity\Settings::setInventoryStyle |
|
44
|
|
|
* @todo Implement testSetInventoryStyle(). |
|
45
|
|
|
*/ |
|
46
|
|
|
public function testSetInventoryStyle() { |
|
47
|
|
|
// Remove the following lines when you implement this test. |
|
48
|
|
|
$this->markTestIncomplete( |
|
49
|
|
|
'This test has not been implemented yet.' |
|
50
|
|
|
); |
|
51
|
|
|
} |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* @covers AppBundle\Entity\Settings::getInventoryStyle |
|
55
|
|
|
* @todo Implement testGetInventoryStyle(). |
|
56
|
|
|
*/ |
|
57
|
|
|
public function testGetInventoryStyle() { |
|
58
|
|
|
// Remove the following lines when you implement this test. |
|
59
|
|
|
$this->markTestIncomplete( |
|
60
|
|
|
'This test has not been implemented yet.' |
|
61
|
|
|
); |
|
62
|
|
|
} |
|
63
|
|
|
|
|
64
|
|
|
/** |
|
65
|
|
|
* @covers AppBundle\Entity\Settings::setCalculation |
|
66
|
|
|
* @todo Implement testSetCalculation(). |
|
67
|
|
|
*/ |
|
68
|
|
|
public function testSetCalculation() { |
|
69
|
|
|
// Remove the following lines when you implement this test. |
|
70
|
|
|
$this->markTestIncomplete( |
|
71
|
|
|
'This test has not been implemented yet.' |
|
72
|
|
|
); |
|
73
|
|
|
} |
|
74
|
|
|
|
|
75
|
|
|
/** |
|
76
|
|
|
* @covers AppBundle\Entity\Settings::getCalculation |
|
77
|
|
|
* @todo Implement testGetCalculation(). |
|
78
|
|
|
*/ |
|
79
|
|
|
public function testGetCalculation() { |
|
80
|
|
|
// Remove the following lines when you implement this test. |
|
81
|
|
|
$this->markTestIncomplete( |
|
82
|
|
|
'This test has not been implemented yet.' |
|
83
|
|
|
); |
|
84
|
|
|
} |
|
85
|
|
|
|
|
86
|
|
|
/** |
|
87
|
|
|
* @covers AppBundle\Entity\Settings::setFirstInventory |
|
88
|
|
|
* @todo Implement testSetFirstInventory(). |
|
89
|
|
|
*/ |
|
90
|
|
|
public function testSetFirstInventory() { |
|
91
|
|
|
// Remove the following lines when you implement this test. |
|
92
|
|
|
$this->markTestIncomplete( |
|
93
|
|
|
'This test has not been implemented yet.' |
|
94
|
|
|
); |
|
95
|
|
|
} |
|
96
|
|
|
|
|
97
|
|
|
/** |
|
98
|
|
|
* @covers AppBundle\Entity\Settings::getFirstInventory |
|
99
|
|
|
* @todo Implement testGetFirstInventory(). |
|
100
|
|
|
*/ |
|
101
|
|
|
public function testGetFirstInventory() { |
|
102
|
|
|
// Remove the following lines when you implement this test. |
|
103
|
|
|
$this->markTestIncomplete( |
|
104
|
|
|
'This test has not been implemented yet.' |
|
105
|
|
|
); |
|
106
|
|
|
} |
|
107
|
|
|
|
|
108
|
|
|
/** |
|
109
|
|
|
* @covers AppBundle\Entity\Settings::setCurrency |
|
110
|
|
|
* @todo Implement testSetCurrency(). |
|
111
|
|
|
*/ |
|
112
|
|
|
public function testSetCurrency() { |
|
113
|
|
|
// Remove the following lines when you implement this test. |
|
114
|
|
|
$this->markTestIncomplete( |
|
115
|
|
|
'This test has not been implemented yet.' |
|
116
|
|
|
); |
|
117
|
|
|
} |
|
118
|
|
|
|
|
119
|
|
|
/** |
|
120
|
|
|
* @covers AppBundle\Entity\Settings::getCurrency |
|
121
|
|
|
* @todo Implement testGetCurrency(). |
|
122
|
|
|
*/ |
|
123
|
|
|
public function testGetCurrency() { |
|
124
|
|
|
// Remove the following lines when you implement this test. |
|
125
|
|
|
$this->markTestIncomplete( |
|
126
|
|
|
'This test has not been implemented yet.' |
|
127
|
|
|
); |
|
128
|
|
|
} |
|
129
|
|
|
|
|
130
|
|
|
} |
|
131
|
|
|
|
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.