Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:tests:topicapidtotest

tests/api/unit/dto/TopicApiDtoTest.php

Source: tests/api/unit/dto/TopicApiDtoTest.php · 150 lines, ~551 statements · namespace: (global) · `declare(strict_types=1)`: no


TopicApiDto Test

Unit tests for Scriptlog\Dto\Api\TopicApiDto.

The transform() output contract (verified against the implementation in lib/dto/api/TopicApiDto.php) emits: id, title, slug, status, post_count, url. TopicApiDto does not emit per-item _links.

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