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.
| Alias | Fully-qualified name |
|---|---|
TestCase | PHPUnit\Framework\TestCase |
| 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 |