| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class AccountingDocumentTest extends TestCase |
||
| 12 | { |
||
| 13 | public function tearDown(): void |
||
| 14 | { |
||
| 15 | User::setCurrent(null); |
||
| 16 | } |
||
| 17 | |||
| 18 | public function testGetPath(): void |
||
| 19 | { |
||
| 20 | $document = new AccountingDocument(); |
||
| 21 | $document->setFilename('invoice.pdf'); |
||
| 22 | |||
| 23 | self::assertSame('invoice.pdf', $document->getFilename()); |
||
| 24 | $appPath = realpath('.'); |
||
| 25 | $expected = $appPath . '/data/accounting/invoice.pdf'; |
||
| 26 | self::assertSame($expected, $document->getPath()); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function testGetPermissions(): void |
||
| 54 | } |
||
| 55 | } |
||
| 56 |