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.
| Mode | Target | Line |
|---|---|---|
require | require_once DIR . '/../../ApiTestCase.php'; | 14 |
require | require_once DIR . '/../../fixtures/ApiDataFixture.php'; | 15 |