diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-05-26 08:39:07 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-05-26 08:39:07 +0300 |
| commit | 1cea8a710a8dffd9f8286c3b7e46a9379841e2b4 (patch) | |
| tree | 72d4be3525a2390eeec3eb0188d750b85b3c2766 /tests_integration/DbTestCase.php | |
| parent | dc60880d9cc4074a231fd21c9508d0f78beaf1f1 (diff) | |
| download | the-epube-1cea8a710a8dffd9f8286c3b7e46a9379841e2b4.tar.gz the-epube-1cea8a710a8dffd9f8286c3b7e46a9379841e2b4.tar.xz | |
import integration test scaffold from tt-rss
Diffstat (limited to 'tests_integration/DbTestCase.php')
| -rw-r--r-- | tests_integration/DbTestCase.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests_integration/DbTestCase.php b/tests_integration/DbTestCase.php new file mode 100644 index 0000000..b4c7db5 --- /dev/null +++ b/tests_integration/DbTestCase.php @@ -0,0 +1,13 @@ +<?php +use PHPUnit\Framework\TestCase; + +abstract class DbTestCase extends TestCase { + + protected function setUp(): void { + $_SESSION['uid'] = 1; + } + + protected function tearDown(): void { + unset($_SESSION['uid']); + } +} |
