From 78f496f37893982156555144c99b2f0cb55c337a Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Thu, 20 Nov 2014 01:47:30 +0000 Subject: [PATCH] Fix a MySQL warning in the `test_get_adjacent_post_exclude_self_term` unit test, caused by [30400]. See #21212, #22112. git-svn-id: https://develop.svn.wordpress.org/trunk@30401 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/link.php b/tests/phpunit/tests/link.php index ec94d6084e..1de3f68112 100644 --- a/tests/phpunit/tests/link.php +++ b/tests/phpunit/tests/link.php @@ -195,7 +195,7 @@ class Tests_Link extends WP_UnitTestCase { function test_get_adjacent_post_exclude_self_term() { // Bump term_taxonomy to mimic shared term offsets. global $wpdb; - $wpdb->insert( $wpdb->term_taxonomy, array( 'taxonomy' => 'foo', 'term_id' => 12345 ) ); + $wpdb->insert( $wpdb->term_taxonomy, array( 'taxonomy' => 'foo', 'term_id' => 12345, 'description' => '' ) ); $include = $this->factory->term->create( array( 'taxonomy' => 'category',