Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:tests:apihelpertest

This is an old revision of the document!


tests/api/unit/ApiHelperTest.php

Source: tests/api/unit/ApiHelperTest.php · 73 lines, ~234 statements · namespace: (global) · `declare(strict_types=1)`: no


ApiHelper Test

Unit tests for Scriptlog\Core\ApiHelper::getAppUrl().

The helper resolves the application base URL from config.php exactly once and caches the result in the Registry under the 'app_url' key. These tests cover both the cache-hit path and the read-then-cache path without depending on the contents of the (gitignored) config.php.

Includes

^ Mode ^ Target ^ Line ^
| ''require'' | ''require_once __DIR__ . '/../ApiTestCase.php';'' | 15 |

Types declared here


Generated by 'tools/gendoc'.

scriptlog/tests/apihelpertest.1790413764.txt.gz · Last modified: by admin