@@ 256-262 (lines=7) @@ | ||
253 | /** |
|
254 | * Test for editAction(). |
|
255 | */ |
|
256 | public function testEditAction() |
|
257 | { |
|
258 | $this->createProfile('test'); |
|
259 | $this->createSetting('test_setting', 'test'); |
|
260 | $this->client->request('GET', '/settings/setting/test_setting/edit/test'); |
|
261 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
|
262 | } |
|
263 | ||
264 | /** |
|
265 | * Data provider for testRemoveAction(). |
|
@@ 288-294 (lines=7) @@ | ||
285 | * |
|
286 | * @dataProvider removeActionData() |
|
287 | */ |
|
288 | public function testRemoveAction($url, $expectedStatusCode) |
|
289 | { |
|
290 | $this->createProfile('test'); |
|
291 | $this->createSetting('test_setting', 'test'); |
|
292 | $this->client->request('DELETE', $url); |
|
293 | $this->assertEquals($expectedStatusCode, $this->client->getResponse()->getStatusCode()); |
|
294 | } |
|
295 | ||
296 | /** |
|
297 | * Test EditAction and ensure cached value is cleared. |