Tests: Fix two typos introduced for a get_term_field() test in [35270].

See #33968.


git-svn-id: https://develop.svn.wordpress.org/trunk@42645 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2018-02-03 17:10:51 +00:00
parent a6888ef843
commit 86d486d67d
1 changed files with 2 additions and 2 deletions

View File

@ -47,12 +47,12 @@ class Tests_Term_getTermField extends WP_UnitTestCase {
/**
* @ticket 34245
*/
public function test_get_term_field_should_accept_a_WP_Term_object_term_id_or_object() {
public function test_get_term_field_should_accept_a_WP_Term_id_or_object() {
$term = self::factory()->term->create_and_get( array( 'taxonomy' => $this->taxonomy ) );
$this->assertInstanceOf( 'WP_Term', $term );
$this->assertSame( $term->term_id, get_term_field( 'term_id', $term ) );
$this->assertSame( $term->term_id, get_term_Field( 'term_id', $term->data ) );
$this->assertSame( $term->term_id, get_term_field( 'term_id', $term->data ) );
$this->assertSame( $term->term_id, get_term_field( 'term_id', $term->term_id ) );
}