Skip to content

Add test for post type without Yoast SEO Metabox #88

@kraftner

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions