Taxonomy: Fix unit tests after [36308].
See #34988. git-svn-id: https://develop.svn.wordpress.org/trunk@36309 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2241519865
commit
44db9bccf4
@ -991,7 +991,7 @@ class Tests_Post extends WP_UnitTestCase {
|
||||
$term = reset( $terms );
|
||||
|
||||
foreach ( $matches[1] as $url ) {
|
||||
$this->assertContains( 'tag_ID=' . $term->term_id, $url );
|
||||
$this->assertContains( 'term_id=' . $term->term_id, $url );
|
||||
$this->assertContains( 'post_type=new_post_type', $url );
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ class Tests_Term_GetEditTermLink extends WP_UnitTestCase {
|
||||
) );
|
||||
|
||||
$actual = get_edit_term_link( $term1, 'wptests_tax' );
|
||||
$expected = 'http://' . WP_TESTS_DOMAIN . '/wp-admin/edit-tags.php?action=edit&taxonomy=wptests_tax&tag_ID=' . $term1 . '&post_type=post';
|
||||
$expected = 'http://' . WP_TESTS_DOMAIN . '/wp-admin/term.php?taxonomy=wptests_tax&term_id=' . $term1 . '&post_type=post';
|
||||
$this->assertEquals( $expected, $actual );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user