Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:tests:bootstrap_api

This is an old revision of the document!


tests/bootstrap_api.php

Source: tests/bootstrap_api.php · 64 lines, ~211 statements · namespace: (global) · `declare(strict_types=1)`: no


API Test Bootstrap

Bootstrap for the Phase 4.7 API test suite (tests/api/).

Loads the full application environment (utilities, PSR-4 aliases, rate limiter, HATEOAS) and sets up the test database connection so both controller unit tests and database-backed integration tests can run.

The global phpunit.xml bootstrap (tests/bootstrap.php) is the default for the test run; this file is used when executing the API suite directly:

  lib/vendor/bin/phpunit --bootstrap tests/bootstrap_api.php tests/api

Includes

^ Mode ^ Target ^ Line ^
| ''require'' | ''require_once __DIR__ . '/../lib/vendor/autoload.php';'' | 22 |
| ''require'' | ''require_once __DIR__ . '/../lib/common.php';'' | 23 |
| ''require'' | ''require_once __DIR__ . '/../install/include/setup.php';'' | 28 |
| ''require'' | ''require_once __DIR__ . '/../lib/utility-loader.php';'' | 32 |
| ''require'' | ''require_once __DIR__ . '/../lib/utility/rate-limiter.php';'' | 41 |
| ''require'' | ''require_once __DIR__ . '/../lib/core/ApiHateoas.php';'' | 42 |
| ''require'' | ''require __DIR__ . '/../lib/autoload-aliases-map.php';'' | 46 |
| ''require'' | ''require_once __DIR__ . '/bootstrap_integration.php';'' | 60 |

Constants

^ Name ^ Value / expression ^ Line ^
| ''('TEST_API', true'' | ''define('TEST_API', true)'' | 63 |

Generated by 'tools/gendoc'.

scriptlog/tests/bootstrap_api.1790413766.txt.gz · Last modified: by admin