mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-15 21:00:14 +00:00
[Web] API: complete the OpenAPI docs, add route tests for json_api.php
This commit is contained in:
47 files changed
+18848
-7491
No files matched your search
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
// Stand-in for data/web/inc/prerequisites.inc.php in the API harness (runner.php): the session of the request
|
||||
// instead of the API key login, recorders for the database and Redis, the globals the test sets.
|
||||
|
||||
$pdo = new \ApiHarness\Recorder('pdo');
|
||||
$redis = new \ApiHarness\Recorder('redis');
|
||||
$_SESSION = $GLOBALS['__harness_session'] ?? [];
|
||||
foreach ($GLOBALS['__harness_globals'] ?? [] as $name => $value) {
|
||||
$GLOBALS[$name] = $value;
|
||||
}
|
||||
Reference in new issue
Block a user