Completed
Push — master ( aa6f89...863f7f )
by John
08:07
created

canGetUnsecuredContentWithoutAuth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php declare(strict_types = 1);
2
/*
3
 * This file is part of the KleijnWeb\SwaggerBundle package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace KleijnWeb\SwaggerBundle\Tests\Functional;
10
11
use KleijnWeb\SwaggerBundle\Test\ApiResponseErrorException;
12
use KleijnWeb\SwaggerBundle\Test\ApiTestCase;
13
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
14
15
/**
16
 * @author John Kleijn <[email protected]>
17
 * @group  functional
18
 */
19
class BasicSecuredApiTest extends WebTestCase
20
{
21
    use ApiTestCase;
22
23
    /**
24
     * @var string
25
     */
26
    protected $env = 'secure_basic';
27
28
    /**
29
     * @test
30
     */
31
    public function canGetUnsecuredContentWithoutAuth()
32
    {
33
        $string = $this->get('/basic-auth/v1/unsecured');
34
35
        $this->assertSame($string, 'UNSECURED CONTENT');
36
    }
37
38
39
}
40