mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-10 07:34:34 +00:00
REST API: Fix test failures.
- Fix leak in setup_notify_comment() test help by removing the comment_flood_filter. - Correct uses of $term_taxonomy_id -> $term_id in Category and Tags routing. - Temporarily remove the metadata tests for canola.jpg as that file does not have an exifdata. Will need to update the test. Props jorbin, rmccue, nacin See #38373. git-svn-id: https://develop.svn.wordpress.org/trunk@38834 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -460,7 +460,7 @@ class Tests_Comment extends WP_UnitTestCase {
|
||||
$this->assertFalse( $notification_sent, 'Moderator notification setting on, filter set to off' );
|
||||
|
||||
remove_filter( 'notify_moderator', '__return_false' );
|
||||
|
||||
remove_filter( 'comment_flood_filter', '__return_false' );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -481,6 +481,7 @@ class Tests_Comment extends WP_UnitTestCase {
|
||||
$this->assertTrue( $notification_sent, 'Moderator notification setting off, filter set to on' );
|
||||
|
||||
remove_filter( 'notify_moderator', '__return_true' );
|
||||
remove_filter( 'comment_flood_filter', '__return_false' );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -502,6 +503,7 @@ class Tests_Comment extends WP_UnitTestCase {
|
||||
$this->assertFalse( $notification_sent, 'Test with author notification setting on, filter set to off' );
|
||||
|
||||
remove_filter( 'notify_post_author', '__return_false' );
|
||||
remove_filter( 'comment_flood_filter', '__return_false' );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -522,6 +524,7 @@ class Tests_Comment extends WP_UnitTestCase {
|
||||
$this->assertTrue( $notification_sent, 'Test with author notification setting off, filter set to on' );
|
||||
|
||||
remove_filter( 'notify_post_author', '__return_true' );
|
||||
remove_filter( 'comment_flood_filter', '__return_false' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user