Make WordPress Core

Changeset 42645


Ignore:
Timestamp:
02/03/2018 05:10:51 PM (9 years ago)
Author:
DrewAPicture
Message:

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

See #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term/getTermField.php

    r42343 r42645  
    4848         * @ticket 34245
    4949         */
    50         public function test_get_term_field_should_accept_a_WP_Term_object_term_id_or_object() {
     50        public function test_get_term_field_should_accept_a_WP_Term_id_or_object() {
    5151                $term = self::factory()->term->create_and_get( array( 'taxonomy' => $this->taxonomy ) );
    5252
    5353                $this->assertInstanceOf( 'WP_Term', $term );
    5454                $this->assertSame( $term->term_id, get_term_field( 'term_id', $term ) );
    55                 $this->assertSame( $term->term_id, get_term_Field( 'term_id', $term->data ) );
     55                $this->assertSame( $term->term_id, get_term_field( 'term_id', $term->data ) );
    5656                $this->assertSame( $term->term_id, get_term_field( 'term_id', $term->term_id ) );
    5757        }
Note: See TracChangeset for help on using the changeset viewer.