| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function testIndexAction() |
||
| 10 | { |
||
| 11 | $this->request('/admin/', 'GET', 302); |
||
| 12 | $this->request('/login'); |
||
| 13 | $client = $this->logIn(); |
||
| 14 | $crawler = $this->request('/admin/'); |
||
| 15 | |||
| 16 | $form = $crawler->selectButton('Save')->form(); |
||
| 17 | $client->submit($form, [ |
||
| 18 | 'admin[userName]' => 'test1', |
||
| 19 | 'admin[email]' => '[email protected]', |
||
| 20 | ]); |
||
| 21 | $admin = $this->em->getRepository(Admin::class)->findOneBy(['userName' => 'test1']); |
||
| 22 | |||
| 23 | $this->assertInstanceOf(Admin::class, $admin); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |