Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | |||
15 | class FilesTest extends \CommonTestClass |
||
16 | { |
||
17 | /** |
||
18 | * @throws FilesException |
||
19 | * @throws MenuException |
||
20 | * @throws PathsException |
||
21 | */ |
||
22 | public function testExisting(): void |
||
23 | { |
||
24 | // in meta source the path targets the meta file with records of entries |
||
25 | // in entries source the path targets the directory with files or or group identifier of entries |
||
26 | $path = $this->getTargetPath(); |
||
27 | $lib = $this->getLib($path); // meta with data |
||
28 | $lib->setMeta(['target.meta']); // file with meta data |
||
29 | $lib->load(); |
||
30 | $this->assertNotEmpty($lib->getMeta()); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @throws FilesException |
||
35 | * @throws MenuException |
||
36 | * @throws PathsException |
||
37 | */ |
||
38 | public function testNew(): void |
||
39 | { |
||
40 | $path = $this->getTargetPath(); |
||
41 | $lib = $this->getLib($path); // meta with data |
||
42 | $lib->setGroupKey(['dummy3']); // dir with data |
||
43 | $lib->setMeta(['copy.meta']); // file with meta data |
||
65 |