Skip to content

Commit

Permalink
Fix Unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Miraeld committed Dec 5, 2024
1 parent 464eff7 commit 05d8e02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public function testShouldCombineGoogleFonts( $config, $html, $expected ) {
Filters\expectApplied( 'rocket_disable_google_fonts_preload' )
->andReturn( $config['disable_preload'] );

Filters\expectApplied( 'rocket_exclude_locally_host_fonts' )
->andReturn( $config['exclude_locally_host_fonts'] ?? [] );


$combine = new Combine();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public function testShouldCombineV2GoogleFonts( $config, $html, $expected ) {
->andReturn( $config['disable_preload'] );
}

Filters\expectApplied( 'rocket_exclude_locally_host_fonts' )
->andReturn( $config['exclude_locally_host_fonts'] ?? [] );

$combiner = new CombineV2();

$this->assertSame(
Expand Down

0 comments on commit 05d8e02

Please sign in to comment.