Skip to content

Commit

Permalink
Make block styles be loaded in a separate stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Oct 27, 2022
1 parent 5521274 commit 1099bce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/phpunit/tests/theme/wpGetGlobalStylesForBlocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public function filter_set_theme_root() {
public function test_styles_for_blocks() {
switch_theme( 'block-theme' );

// The 3rd party block styles are only missing
// if the assets are loaded per block.
add_filter( 'should_load_separate_core_block_assets', '__return_true' );

$name = 'my/third-party-block';
$settings = array(
'icon' => 'text',
Expand Down

0 comments on commit 1099bce

Please sign in to comment.