mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
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:
@@ -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 ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user