Skip to content

test: bootstrap wp_json_encode in step execution error smoke #3387

Description

@chubes4

Problem

php tests/step-execution-result-error-smoke.php fatals before assertions because StepExecutionResult now builds a StepResult, whose content hashing calls wp_json_encode(). The standalone smoke does not define that WordPress function.

Call to undefined function DataMachine\Core\wp_json_encode()
inc/Core/StepResult.php:126

Observed while running the required compatibility gates for #3386. The neighboring step execution contract smoke already provides the required bootstrap shape and passes.

Expected

Add the minimal faithful wp_json_encode() standalone stub before loading production classes, then confirm the existing error-classification assertions execute and pass. Do not change production behavior.

Constraints

  • Test bootstrap only.
  • No changelog or version edits.
  • Conventional test: commit.
  • PR only; no release or deployment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions