From f3488744cee3107627126891b928b24bb0e98036 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 2 Oct 2013 19:46:58 +0000 Subject: [PATCH] Add a default value to `WP_UnitTest_Factory_For_Comment::default_generation_definitions['comment_content']` to avoid a tornado of database errors in PHP 5.5/MySQL 5.6, even when `WP_DEBUG` is turned off. See #25282. git-svn-id: https://develop.svn.wordpress.org/trunk@25660 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/factory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/includes/factory.php b/tests/phpunit/includes/factory.php index 39131492b1..aa938bb380 100644 --- a/tests/phpunit/includes/factory.php +++ b/tests/phpunit/includes/factory.php @@ -122,6 +122,7 @@ class WP_UnitTest_Factory_For_Comment extends WP_UnitTest_Factory_For_Thing { 'comment_author' => new WP_UnitTest_Generator_Sequence( 'Commenter %s' ), 'comment_author_url' => new WP_UnitTest_Generator_Sequence( 'http://example.com/%s/' ), 'comment_approved' => 1, + 'comment_content' => 'This is a comment' ); }