Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:tests:postsapiintegrationtest

tests/api/integration/PostsApiIntegrationTest.php

Source: tests/api/integration/PostsApiIntegrationTest.php · 133 lines, ~617 statements · namespace: (global) · `declare(strict_types=1)`: no


PostsApi Integration Test

Database-backed integration tests for the PostService/PostDao API layer. Unlike the controller unit tests (which run each action in a subprocess because ApiResponse::send() exits), these tests call the service methods directly inside the PHPUnit process against the real blogware_test database seeded by ApiDataFixture.

Includes

Mode Target Line
require require_once DIR . '/../ApiTestCase.php'; 14
require require_once DIR . '/../fixtures/ApiDataFixture.php'; 15

Types declared here


Generated by 'tools/gendoc'.

scriptlog/tests/postsapiintegrationtest.txt · Last modified: by admin