FormControllersTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 1
cbo 2
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testForm() 0 10 1
1
<?php
2
3
namespace OpenOrchestra\FunctionalTests\UserAdminBundle\Controller;
4
5
use OpenOrchestra\FunctionalTests\Utils\AbstractAuthenticatedTest;
6
7
/**
8
 * Class FormControllersTest
9
 */
10
class FormControllersTest extends AbstractAuthenticatedTest
11
{
12
    /**
13
     * Test user form
14
     */
15
    public function testForm()
16
    {
17
        $this->client->request('GET', '/admin/user/new');
18
19
        $response = $this->client->getResponse();
20
        $this->assertEquals(200, $response->getStatusCode());
21
        $this->assertRegExp('/form/', $response->getContent());
22
        $this->assertNotRegExp('/<html/', $response->getContent());
23
        $this->assertRegExp('/registration_user/', $response->getContent());
24
    }
25
}
26