DescriptorControllerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetDescriptor() 0 12 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AtlassianConnectBundle\Tests\Functional;
6
7
final class DescriptorControllerTest extends AbstractWebTestCase
8
{
9
    public function testGetDescriptor(): void
10
    {
11
        $client = self::createClient();
12
        $client->request('GET', '/atlassian-connect.json');
13
14
        $this->assertResponseIsSuccessful();
15
16
        $descriptor = json_decode($client->getResponse()->getContent(), true);
17
        $config = self::getContainer()->getParameter('atlassian_connect');
18
        $this->assertSame(
19
            $config,
20
            $descriptor
21
        );
22
    }
23
}
24