Skip to content

Commit

Permalink
Merge branch 'develop' into feature/lcp-above-the-fold-optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona committed Apr 19, 2024
2 parents fb9a475 + 0cf2ccb commit af00697
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ public function tear_down() {
}

protected function setSmushSettings( $lazyload_enabled, array $lazyload_formats ) {
$settings = $this->smush_settings;
$settings = $this->smush_settings;

if ( false === $settings ) {
$settings = [];
}

$settings['lazy_load'] = (bool) $lazyload_enabled;

$this->smush->set_setting( $this->smush_settings_option_name, $settings );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Test_Treeshake extends TestCase {
protected $data_manager;
protected $filesystem;
protected $context;
protected $usedCss;
protected $manager;

/**
Expand All @@ -48,7 +49,7 @@ protected function setUp(): void
$this->usedCss = Mockery::mock(
UsedCSS::class . '[is_allowed,update_last_accessed]',
[
$this->options,
$this->options,
$this->usedCssQuery,
$this->data_manager,
$this->filesystem,
Expand Down

0 comments on commit af00697

Please sign in to comment.