Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class UploadModelTraitTest extends Unit |
||
9 | { |
||
10 | private function createModel(): TestModel |
||
11 | { |
||
12 | return new TestModel(); |
||
13 | } |
||
14 | |||
15 | /** |
||
16 | * @dataProvider dataProviderExtensions |
||
17 | */ |
||
18 | public function testExtensions($extensions, array $expected): void |
||
19 | { |
||
20 | $model = $this->createModel(); |
||
21 | $model->setExtensions($extensions); |
||
22 | $this->assertEquals($expected, $model->getExtensions()); |
||
23 | } |
||
24 | |||
25 | public function dataProviderExtensions(): array |
||
32 | ]; |
||
33 | } |
||
34 | |||
35 | public function testRules(): void |
||
38 | } |
||
39 | |||
40 | // TODO |
||
41 | public function testUpload(): void |
||
43 | } |
||
44 | } |
||
45 |