feat: import taxonomy term records

This commit is contained in:
Keith Solomon
2026-04-29 20:32:56 -05:00
parent 6d11934fcc
commit 592e6e7403
4 changed files with 536 additions and 2 deletions
@@ -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 {