====== tests/api/unit/dto/PostApiDtoTest.php ====== **Source:** ''tests/api/unit/dto/PostApiDtoTest.php'' · 246 lines, ~1163 statements · namespace: //(global)// · `declare(strict_types=1)`: no ---- PostApiDto Test Unit tests for Scriptlog\Dto\Api\PostApiDto. The transform() output contract (verified against the implementation in lib/dto/api/PostApiDto.php) emits: id, title, slug, content, summary, excerpt, status, visibility, tags, comment_status, type, author{id, login, name}, date, modified, url. rewrite_status() is resolved from the test database (tbl_settings) so both the permalink and the ?p=/?pg= fallback URL branches are exercised. ======= Includes ======= ^ Mode ^ Target ^ Line ^ | ''require'' | ''require_once __DIR__ . '/../../ApiTestCase.php';'' | 18 | | ''require'' | ''require_once __DIR__ . '/../../fixtures/ApiDataFixture.php';'' | 19 | ======= Types declared here ======= * [[scriptlog:tests:postapidtotest|PostApiDtoTest]] ---- //Generated by 'tools/gendoc'.//