Making WordPress.org

Changeset 10105


Ignore:
Timestamp:
07/30/2020 05:22:48 AM (4 years ago)
Author:
dd32
Message:

Plugin Directory: Blocks: Trigger a block e2e run after each block import.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php

    r10079 r10105  
    1010use WordPressdotorg\Plugin_Directory\Template;
    1111use WordPressdotorg\Plugin_Directory\Tools;
     12use WordPressdotorg\Plugin_Directory\Tools\Block_e2e;
    1213use WordPressdotorg\Plugin_Directory\Tools\Filesystem;
    1314use WordPressdotorg\Plugin_Directory\Tools\SVN;
     
    231232        // Import Tide data
    232233        Tide_Sync::sync_data( $plugin->post_name );
     234
     235        // Run the Block Directory e2e tests if applicable.
     236        if ( has_term( 'block', 'plugin_section', $plugin->ID ) ) {
     237            Block_e2e::run( $plugin->post_name );
     238        }
    233239
    234240        return true;
Note: See TracChangeset for help on using the changeset viewer.