1 | <?php |
||
56 | class TemplateEntityTest extends PHPUnit_Framework_TestCase |
||
57 | { |
||
58 | /** |
||
59 | * @var TemplateEntity |
||
60 | */ |
||
61 | private $template; |
||
62 | |||
63 | protected function setUp() |
||
67 | |||
68 | /** |
||
69 | * @covers ::setId |
||
70 | * @covers ::getId |
||
71 | */ |
||
72 | public function testSetGetId() |
||
78 | |||
79 | /** |
||
80 | * @covers ::setUuid |
||
81 | * @covers ::getUuid |
||
82 | */ |
||
83 | public function testSetGetUuid() |
||
89 | |||
90 | /** |
||
91 | * @covers ::setLocale |
||
92 | * @covers ::getLocale |
||
93 | */ |
||
94 | public function testSetGetLocale() |
||
100 | |||
101 | /** |
||
102 | * @covers ::getTextBody |
||
103 | * @covers ::setTextBody |
||
104 | */ |
||
105 | public function testSetGetTextBody() |
||
111 | |||
112 | /** |
||
113 | * @covers ::getHtmlBody |
||
114 | * @covers ::setHtmlBody |
||
115 | */ |
||
116 | public function testSetGetHtmlBody() |
||
122 | |||
123 | /** |
||
124 | * @covers ::setParameters |
||
125 | * @covers ::getParameters |
||
126 | */ |
||
127 | public function testSetGetParameters() |
||
128 | { |
||
129 | $this->assertEmpty($this->template->getParameters()); |
||
130 | $this->template->setParameters(['foo' => 'bar']); |
||
131 | $this->assertEquals(['foo' => 'bar'], $this->template->getParameters()); |
||
132 | } |
||
133 | |||
134 | /** |
||
135 | * @covers ::getSubject |
||
136 | * @covers ::setSubject |
||
137 | */ |
||
138 | public function testSetGetSubject() |
||
144 | |||
145 | /** |
||
146 | * @covers ::getDescription |
||
147 | * @covers ::setDescription |
||
148 | */ |
||
149 | public function testSetGetDescription() |
||
155 | |||
156 | /** |
||
157 | * @covers ::setParametersUpdatedAt |
||
158 | * @covers ::getParametersUpdatedAt |
||
159 | */ |
||
160 | public function testSetGetParamsUpdatedAt() |
||
161 | { |
||
162 | $date = new DateTime(); |
||
163 | $this->assertNull($this->template->getParametersUpdatedAt()); |
||
164 | $this->template->setParametersUpdatedAt($date); |
||
165 | $this->assertEquals($date, $this->template->getParametersUpdatedAt()); |
||
166 | } |
||
167 | |||
168 | /** |
||
169 | * @covers ::setUpdateParameters |
||
170 | * @covers ::getUpdateParameters |
||
171 | */ |
||
172 | public function testSetGetUpdateParameters() |
||
178 | |||
179 | /** |
||
180 | * @covers ::getCreatedAt |
||
181 | * @covers ::setCreatedAt |
||
182 | */ |
||
183 | public function testSetGetCreatedAt() |
||
190 | |||
191 | /** |
||
192 | * @covers ::getUpdatedAt |
||
193 | * @covers ::setUpdatedAt |
||
194 | */ |
||
195 | public function testSetGetUpdatedAt() |
||
202 | } |
||
203 |