Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for post type without Yoast SEO Metabox #88

Open
kraftner opened this issue Oct 18, 2017 · 0 comments · May be fixed by #103
Open

Add test for post type without Yoast SEO Metabox #88

kraftner opened this issue Oct 18, 2017 · 0 comments · May be fixed by #103
Assignees

Comments

@kraftner
Copy link
Contributor

#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.

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

Successfully merging a pull request may close this issue.

4 participants