Files
peptide-repo-core/tests
peptiderepo 874f93b252 fix(tests): define PR_CORE_PLUGIN_DIR + trailingslashit in bootstrap
PHP Lint (8.2) failed after the floatval removal surfaced a deeper
issue: the autoloader references PR_CORE_PLUGIN_DIR unconditionally,
which is defined in the main plugin bootstrap but not loaded by the
test runner. Same for trailingslashit (a WP function the autoloader
calls).

Added constants and a tiny trailingslashit stub to tests/bootstrap.php
so plain-php unit runs can load the autoloader and exercise the CPT
class. No runtime behavior change — test harness only.
2026-04-22 08:40:03 +00:00
..