-
Notifications
You must be signed in to change notification settings - Fork 14
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
base: v2.0
Are you sure you want to change the base?
Feature/issue 130/finish migrating tests to new format #135
Conversation
tests/Feature/WPTitleWPHeadTest.php
Outdated
ob_start(); | ||
WP_SEO()->wp_head(); | ||
$html = ob_get_clean(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attn @mogmarsh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated!
Co-authored-by: Travis Weston <[email protected]>
There was a problem hiding this 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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.