Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Feb 6, 2025
1 parent 54cefa8 commit 79f08ea
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions phpunit/blocks/block-navigation-link-variations-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit 79f08ea

Please sign in to comment.