DescriptorControllerTest::testGetDescriptor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 8
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 12
rs 10
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