Skip to content

Create a smooth way to create posts w/the phpunit factory that use ACF fields #3

@pkarl

Description

@pkarl

Right now I'm testing using ACF5 Beta (because it has composer support), and I've exported a simple ACF text field that gets attached to posts.

I'm stuck finding a way to add post_meta here. It uses wp_insert_post so our postmeta options are nil using the factory.

$post_id = $this->factory->post->create( ); // ...?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions