Make WordPress Core


Ignore:
Timestamp:
03/07/2019 11:53:15 AM (6 years ago)
Author:
youknowriad
Message:

Block Editor: Fix unit tests after new blocks addition.

  • Regenerate the REST API fixtures.
  • Remove the block registration hooks in the unit tests.

Refs #46429.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/functions.php

    r44701 r44812  
    238238function _unhook_block_registration() {
    239239    remove_action( 'init', 'register_block_core_archives' );
     240    remove_action( 'init', 'register_block_core_calendar' );
    240241    remove_action( 'init', 'register_block_core_categories' );
    241242    remove_action( 'init', 'register_block_core_latest_posts' );
     243    remove_action( 'init', 'register_block_core_rss' );
     244    remove_action( 'init', 'register_block_core_search' );
    242245    remove_action( 'init', 'register_block_core_shortcode' );
     246    remove_action( 'init', 'register_block_core_tag_cloud' );
    243247}
    244248tests_add_filter( 'init', '_unhook_block_registration', 1000 );
Note: See TracChangeset for help on using the changeset viewer.