Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:tests:postsapiintegrationtest

This is an old revision of the document!


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.1790413764.txt.gz · Last modified: by admin