Skip to content

Add test for post type without Yoast SEO Metabox #88

Description

@kraftner

#67 should have fixed this but some tests to cover our back for regressions wouldn't harm.

I think the general idea would be to add a custom CPT like this:

$args = array(
   'public' => false,
   'show_ui' => true,
   'label'  => 'Test No Metabox'
);
register_post_type( 'test_no_metabox', $args );

from here

public function boot_dev() {
$version = ( -1 === version_compare( get_option( 'acf_version' ), 5 ) ) ? '4' : '5';
require_once AC_SEO_ACF_ANALYSIS_PLUGIN_PATH . '/tests/js/system/data/acf' . $version . '.php';
}

And then run a simple test on that CPT.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions