feat: import taxonomy term records
This commit is contained in:
@@ -17,6 +17,7 @@ class WordPressContentStubTest extends TestCase {
|
||||
$GLOBALS['wpcs_test_post_meta'],
|
||||
$GLOBALS['wpcs_test_terms'],
|
||||
$GLOBALS['wpcs_test_next_term_id'],
|
||||
$GLOBALS['wpcs_test_term_meta'],
|
||||
$GLOBALS['wpcs_test_object_terms'],
|
||||
$GLOBALS['wpcs_test_attachment_files'],
|
||||
$GLOBALS['wpcs_test_attachment_metadata'],
|
||||
@@ -61,7 +62,7 @@ class WordPressContentStubTest extends TestCase {
|
||||
wp_update_term( $result['term_id'], 'category', array( 'name' => 'Latest News' ) );
|
||||
|
||||
$term = get_term_by( 'slug', 'news', 'category' );
|
||||
self::assertSame( 'Latest News', $term['name'] );
|
||||
self::assertSame( 'Latest News', $term->name );
|
||||
}
|
||||
|
||||
public function test_attachment_stubs_store_metadata(): void {
|
||||
|
||||
Reference in New Issue
Block a user