====== tests/api/unit/CategoriesApiControllerTest.php ====== **Source:** ''tests/api/unit/CategoriesApiControllerTest.php'' · 299 lines, ~1413 statements · namespace: //(global)// · `declare(strict_types=1)`: no ---- CategoriesApiController Test Unit tests for Scriptlog\Controller\Api\CategoriesApiController driven through the subprocess runner (ApiTestCase::runController). Controller actions terminate the process via ApiResponse::send(), so each action runs in an isolated PHP process against the seeded test database. Auth: GET actions (index/show/posts) are public (requiresAuth=false at construction); write actions re-enable requiresAuth and enforce permissions via ApiAuth::hasPermission(). The fixture's API key (administrator) is supplied for all write assertions. ======= Includes ======= ^ Mode ^ Target ^ Line ^ | ''require'' | ''require_once __DIR__ . '/../ApiTestCase.php';'' | 18 | | ''require'' | ''require_once __DIR__ . '/../fixtures/ApiDataFixture.php';'' | 19 | ======= Types declared here ======= * [[scriptlog:tests:categoriesapicontrollertest|CategoriesApiControllerTest]] ---- //Generated by 'tools/gendoc'.//