mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
Fix broken check_comment()
test.
The test `Tests_Comment_CheckComment::test_should_return_true_when_content_does_not_match_moderation_keys()` did not, in fact, test for a `true` value, but for a false one. Switching to `assertTrue()` caused a failure, because the test comment triggered the 'comment_moderation' test. As in other tests in the file, the solution is to force 'comment_moderation' to 0 for the purposes of the test. Introduced in [32519]. Props stephdau. Fixes #40584. Built from https://develop.svn.wordpress.org/trunk@40557 git-svn-id: http://core.svn.wordpress.org/trunk@40426 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f1be128cde
commit
fb0a08c8be
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.8-alpha-40556';
|
||||
$wp_version = '4.8-alpha-40557';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user