Passed
Push — master ( 4d2afb...37b1cc )
by Tim
02:49
created

testCreationOfConfigurationDto()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LD\LanguageDetection\Tests\Unit\Service;
6
7
use LD\LanguageDetection\Service\SiteConfigurationService;
8
use LD\LanguageDetection\Tests\Unit\AbstractTest;
9
use TYPO3\CMS\Core\Site\Entity\SiteInterface;
10
11
/**
12
 * @internal
13
 * @coversNothing
14
 */
15
class SiteConfigurationServiceTest extends AbstractTest
16
{
17
    /**
18
     * @covers       \LD\LanguageDetection\Domain\Model\Dto\SiteConfiguration
19
     * @covers       \LD\LanguageDetection\Service\SiteConfigurationService
20
     */
21
    public function testCreationOfConfigurationDto(): void
22
    {
23
        $service = new SiteConfigurationService();
24
        $config = $service->getConfiguration($this->createMock(SiteInterface::class));
25
26
        self::assertEquals(307, $config->getRedirectHttpStatusCode());
27
    }
28
}
29