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

Feature/issue 130/finish migrating tests to new format #135

Open
wants to merge 4 commits into
base: v2.0
Choose a base branch
from

Conversation

vancoder
Copy link

No description provided.

@vancoder vancoder linked an issue Feb 26, 2025 that may be closed by this pull request
Comment on lines 105 to 107
ob_start();
WP_SEO()->wp_head();
$html = ob_get_clean();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha.
I copied this pattern from the tests Greg already migrated,so we might need to revisit those too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

attn @mogmarsh

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

Copy link

@mogmarsh mogmarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I had one question about an expect changing, otherwise 👍

@@ -24,21 +31,22 @@ function test_get_term_option() {

function test_intersect_term_option() {
$this->assertCount(
3,
WP_SEO::instance()->intersect_term_option( array() ),
2,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this an expected/explained change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is testing this function, the count having changed because we've removed keywords from the defaults.

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

Successfully merging this pull request may close these issues.

Finish Migrating Tests to New Format
4 participants