From 80ca5b2b53ea16ef161ef70af918bffd4857308d Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Mon, 20 Apr 2015 15:17:24 +0000 Subject: [PATCH] In term-splitting unit tests, correct incorrect wording in an inline comment. Props dlh. Fixes #32014. git-svn-id: https://develop.svn.wordpress.org/trunk@32208 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/term/splitSharedTerm.php | 8 ++++---- tests/phpunit/tests/term/wpUpdateTerm.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/tests/term/splitSharedTerm.php b/tests/phpunit/tests/term/splitSharedTerm.php index 20ebaadd0d..66fb8bc5b8 100644 --- a/tests/phpunit/tests/term/splitSharedTerm.php +++ b/tests/phpunit/tests/term/splitSharedTerm.php @@ -34,7 +34,7 @@ class Tests_Term_SplitSharedTerm extends WP_UnitTestCase { $t2 = wp_insert_term( 'Foo', 'wptests_tax_2' ); $t3 = wp_insert_term( 'Foo', 'wptests_tax_3' ); - // Manually modify because split terms shouldn't naturally occur. + // Manually modify because shared terms shouldn't naturally occur. $wpdb->update( $wpdb->term_taxonomy, array( 'term_id' => $t1['term_id'] ), array( 'term_taxonomy_id' => $t2['term_taxonomy_id'] ), @@ -119,7 +119,7 @@ class Tests_Term_SplitSharedTerm extends WP_UnitTestCase { 'parent' => $t2['term_id'], ) ); - // Manually modify because split terms shouldn't naturally occur. + // Manually modify because shared terms shouldn't naturally occur. $wpdb->update( $wpdb->term_taxonomy, array( 'term_id' => $t1['term_id'] ), array( 'term_taxonomy_id' => $t3['term_taxonomy_id'] ), @@ -146,7 +146,7 @@ class Tests_Term_SplitSharedTerm extends WP_UnitTestCase { register_taxonomy( 'wptests_tax_5', 'post' ); $t2 = wp_insert_term( 'Foo Default', 'wptests_tax_5' ); - // Manually modify because split terms shouldn't naturally occur. + // Manually modify because shared terms shouldn't naturally occur. $wpdb->update( $wpdb->term_taxonomy, array( 'term_id' => $t1['term_id'] ), array( 'term_taxonomy_id' => $t2['term_taxonomy_id'] ), @@ -173,7 +173,7 @@ class Tests_Term_SplitSharedTerm extends WP_UnitTestCase { register_taxonomy( 'wptests_tax_6', 'post' ); $t2 = wp_insert_term( 'Foo Menu', 'wptests_tax_6' ); - // Manually modify because split terms shouldn't naturally occur. + // Manually modify because shared terms shouldn't naturally occur. $wpdb->update( $wpdb->term_taxonomy, array( 'term_id' => $t1['term_id'] ), array( 'term_taxonomy_id' => $t2['term_taxonomy_id'] ), diff --git a/tests/phpunit/tests/term/wpUpdateTerm.php b/tests/phpunit/tests/term/wpUpdateTerm.php index b00bd67ffe..f9a2ad8a78 100644 --- a/tests/phpunit/tests/term/wpUpdateTerm.php +++ b/tests/phpunit/tests/term/wpUpdateTerm.php @@ -274,7 +274,7 @@ class Tests_Term_WpUpdateTerm extends WP_UnitTestCase { $t1 = wp_insert_term( 'Foo', 'wptests_tax' ); $t2 = wp_insert_term( 'Foo', 'wptests_tax_2' ); - // Manually modify because split terms shouldn't naturally occur. + // Manually modify because shared terms shouldn't naturally occur. $wpdb->update( $wpdb->term_taxonomy, array( 'term_id' => $t1['term_id'] ), array( 'term_taxonomy_id' => $t2['term_taxonomy_id'] ), @@ -315,7 +315,7 @@ class Tests_Term_WpUpdateTerm extends WP_UnitTestCase { $t1 = wp_insert_term( 'Foo', 'wptests_tax' ); $t2 = wp_insert_term( 'Foo', 'wptests_tax_2' ); - // Manually modify because split terms shouldn't naturally occur. + // Manually modify because shared terms shouldn't naturally occur. $wpdb->update( $wpdb->term_taxonomy, array( 'term_id' => $t1['term_id'] ), array( 'term_taxonomy_id' => $t2['term_taxonomy_id'] ),