Skip to content

Commit fab65d7

Browse files
committed
Fix PHPUnit test error.
1 parent eaf9060 commit fab65d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/view-transitions/tests/test-theme.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function test_plvt_load_view_transitions(): void {
3636

3737
// Test that with theme support it registers and enqueues the style.
3838
add_theme_support( 'view-transitions' );
39+
plvt_sanitize_view_transitions_theme_support(); // This must be called to sanitize the arguments (normally on 'init').
3940
plvt_load_view_transitions();
4041
$this->assertTrue( wp_style_is( 'wp-view-transitions', 'registered' ) );
4142
$this->assertTrue( wp_style_is( 'wp-view-transitions', 'enqueued' ) );

0 commit comments

Comments
 (0)