Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:tests:themeviewmodelpreparedtest

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.txt · Last modified: by admin