scriptlog:tests:themepostcardtest
This is an old revision of the document!
Table of Contents
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
scriptlog/tests/themepostcardtest.1790413766.txt.gz · Last modified: by admin
