Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:tests:themeviewmodelpreparedtest

This is an old revision of the document!


tests/unit/ThemeViewModelPreparedTest.php

Source: tests/unit/ThemeViewModelPreparedTest.php · 181 lines, ~1274 statements · namespace: (global) · `declare(strict_types=1)`: no


ThemeViewModelPreparedTest

Unit tests for the Phase 2 theme remediation “prepared values” pipeline: the fromPrepared() builders on Page/Archive/Menu/SidebarViewModel, the matching make*FromPrepared() factory methods, and the MenuViewModel tree builders/renderers used by front_navigation().

DB-free by construction: prepared arrays already carry escaped values, so no database-backed helpers (app_url(), permalinks(), …) are invoked.

Imports

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

Includes

^ Mode ^ Target ^ Line ^
| ''require'' | ''require_once __DIR__ . '/../../lib/utility/theme-escape.php';'' | 24 |
| ''require'' | ''require_once __DIR__ . '/../../lib/core/Theme/ThemeHelper.php';'' | 25 |
| ''require'' | ''require_once __DIR__ . '/../../public/themes/blog/functions-nav.php';'' | 26 |

Types declared here


Generated by 'tools/gendoc'.

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