RegistrationControllerTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testRegister() 0 7 1
A testRegisterSocialNet() 0 7 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: device
5
 * Date: 18.03.16
6
 * Time: 17:58
7
 */
8
9
namespace AppBundle\Tests\Controller;
10
11
12
use AppBundle\Tests\TestBaseWeb;
13
14
class RegistrationControllerTest extends TestBaseWeb
15
{
16
    public function testRegister()
17
    {
18
        $client = static::createClient();
19
20
        $client->request('GET', '/registration');
21
        $this->assertEquals(200, $client->getResponse()->getStatusCode());
22
    }
23
24
    public function testRegisterSocialNet()
25
    {
26
        $client = static::createClient();
27
28
        $client->request('GET', '/account/update-profile');
29
        $this->assertEquals(302, $client->getResponse()->getStatusCode());
30
    }
31
}
32