Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class SupportTest extends CommonTestClass |
||
11 | { |
||
12 | /** |
||
13 | * @param string $in |
||
14 | * @param string[] $expected |
||
15 | * @dataProvider nameFromTemplateProvider |
||
16 | */ |
||
17 | public function testNameFromTemplate(string $in, array $expected): void |
||
18 | { |
||
19 | $this->assertEquals($expected, Support::moduleNameFromRequest($in)); |
||
20 | } |
||
21 | |||
22 | public function nameFromTemplateProvider(): array |
||
27 | ]; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param string[] $in |
||
32 | * @param string $expected |
||
33 | * @dataProvider normalizeLinkProvider |
||
34 | */ |
||
35 | public function testLinkModule(array $in, string $expected): void |
||
38 | } |
||
39 | |||
40 | public function normalizeLinkProvider(): array |
||
50 |