Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:tests:themepostcardtest

This is an old revision of the document!


tests/unit/ThemePostCardTest.php

Source: tests/unit/ThemePostCardTest.php · 145 lines, ~770 statements · namespace: (global) · `declare(strict_types=1)`: no


ThemePostCardTest

Unit tests for the shared post card pipeline introduced in the Phase 6 theme remediation: the prepare_post_card() normalization helper and the blog/partials/card.php (plus meta.php) rendering path.

Rows are crafted with ID=0 and empty topics_data so no database-backed fallback (permalinks(), total_comment(), retrieves_topic_simple(), format_topics()) is invoked - those paths are DB-bound and covered by integration tests instead.

Imports

^ Alias ^ Fully-qualified name ^
| ''TestCase'' | ''PHPUnit\Framework\TestCase'' |

Includes

^ Mode ^ Target ^ Line ^
| ''require'' | ''require_once __DIR__ . '/../../public/themes/blog/functions.php';'' | 25 |

Types declared here


Generated by 'tools/gendoc'.

scriptlog/tests/themepostcardtest.1790413766.txt.gz · Last modified: by admin