-
Notifications
You must be signed in to change notification settings - Fork 297
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
Enhancement/3157 save idea info #3320
Conversation
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.
Seems good, but I'm curious about a misspelling in the test case.
Also: can you add a QA brief? I know in this case it's essentially "Make sure tests pass", but better to leave a minimal one than an empty one 🙂
tests/phpunit/includes/TestCase.php
Outdated
protected function assertPostMetaHasValue( $post_id, $meta_key, $meta_value ) { | ||
$meta = $this->queryPostMeta( $post_id, $meta_key ); | ||
$this->assertNotNull( $meta ); | ||
$this->assertEquals( $meta_value, $meta['meta_value'], "Failted to assert that post $post_id has \"$meta_key\" meta with \"$meta_value\" value." ); |
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->assertEquals( $meta_value, $meta['meta_value'], "Failted to assert that post $post_id has \"$meta_key\" meta with \"$meta_value\" value." ); | |
$this->assertEquals( $meta_value, $meta['meta_value'], "Failed to assert that post $post_id has \"$meta_key\" meta with \"$meta_value\" value." ); |
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.
Seems like a misspelling here, but then it did pass. What's causing this to emit "failted"? I couldn't find it in our code, but is it worth noting why that… typo appears? 🤷🏻♂️
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.
@tofumatt the last parameter is just a friendly message that will be displayed if the first two parameters don't equal.
Co-authored-by: Matthew Riley MacPherson <[email protected]>
Summary
Addresses issue #3157
Relevant technical choices
Checklist