From 79f08ea9059df5ec40cfd872605026c662ac7d35 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Thu, 6 Feb 2025 15:25:27 +0900 Subject: [PATCH] Remove unused code --- .../block-navigation-link-variations-test.php | 47 ------------------- 1 file changed, 47 deletions(-) diff --git a/phpunit/blocks/block-navigation-link-variations-test.php b/phpunit/blocks/block-navigation-link-variations-test.php index ca182158174c2f..1799191d45d825 100644 --- a/phpunit/blocks/block-navigation-link-variations-test.php +++ b/phpunit/blocks/block-navigation-link-variations-test.php @@ -13,53 +13,6 @@ */ class Block_Navigation_Link_Variations_Test extends WP_UnitTestCase { - public function set_up() { - parent::set_up(); - - $post_type = register_post_type( - 'custom_book', - array( - 'labels' => array( - 'item_link' => 'Custom Book', - ), - 'public' => true, - 'show_in_rest' => true, - 'show_in_nav_menus' => true, - ) - ); - $private_post_type = register_post_type( - 'private_custom_book', - array( - 'labels' => array( - 'item_link' => 'Custom Book', - ), - 'public' => false, - 'show_in_rest' => true, - 'show_in_nav_menus' => false, - ) - ); - $taxonomy = register_taxonomy( - 'book_type', - 'custom_book', - array( - 'labels' => array( - 'item_link' => 'Book Type', - ), - 'show_in_nav_menus' => true, - ) - ); - $private_taxonomoy = register_taxonomy( - 'private_book_type', - 'private_custom_book', - array( - 'labels' => array( - 'item_link' => 'Book Type', - ), - 'show_in_nav_menus' => false, - ) - ); - } - public function tear_down() { unregister_post_type( 'custom_book' ); unregister_post_type( 'private_custom_book' );