@@ 35-41 (lines=7) @@ | ||
32 | /** |
|
33 | * Test editAction() of TranslationController |
|
34 | */ |
|
35 | public function testEditAction() |
|
36 | { |
|
37 | $crawler = $this->client->request('POST', '/translation/edit/en_US/messages/test.key'); |
|
38 | $this->assertEquals(1, $crawler->filter('form')->count()); |
|
39 | $this->assertEquals(1, $crawler->filter('div.modal')->count()); |
|
40 | $this->responseAsserts($this->client->getResponse()); |
|
41 | } |
|
42 | ||
43 | /** |
|
44 | * Test deleteAction() of TranslationController |
|
@@ 55-61 (lines=7) @@ | ||
52 | /** |
|
53 | * Test createAction() of TranslationController |
|
54 | */ |
|
55 | public function testCreateAction() |
|
56 | { |
|
57 | $crawler = $this->client->request('GET', '/translation/create'); |
|
58 | $this->assertEquals(1, $crawler->filter('form')->count()); |
|
59 | $this->assertEquals(4, $crawler->filter('input')->count()); |
|
60 | $this->responseAsserts($this->client->getResponse()); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Test checkAction() of TranslationController |