Passed
Push — master ( fc8c86...173775 )
by Tim
02:33
created

testCallLinkHandlerWithoutSite()   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
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LD\LanguageDetection\Tests\Unit\Handler;
6
7
use LD\LanguageDetection\Handler\LinkLanguageHandler;
8
use Psr\EventDispatcher\EventDispatcherInterface;
9
use TYPO3\CMS\Core\Http\ServerRequest;
10
11
/**
12
 * @internal
13
 * @coversNothing
14
 */
15
class LinkLanguageHandlerTest extends AbstractHandlerTest
16
{
17
    /**
18
     * @covers \LD\LanguageDetection\Handler\AbstractHandler
19
     * @covers \LD\LanguageDetection\Handler\LinkLanguageHandler
20
     */
21
    public function testCallLinkHandlerWithoutSite(): void
22
    {
23
        $this->expectExceptionCode(1_637_813_123);
0 ignored issues
show
Bug introduced by
The constant LD\LanguageDetection\Tes...t\Handler\1_637_813_123 was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
24
25
        $handler = new LinkLanguageHandler($this->createMock(EventDispatcherInterface::class));
26
        $handler->handle(new ServerRequest());
27
    }
28
}
29