You are here

public function BlazyManagerUnitTest::testCleanUpBreakpoints in Blazy 8

Test \Drupal\blazy\BlazyManager::cleanUpBreakpoints().

@covers ::cleanUpBreakpoints @dataProvider providerTestCleanUpBreakpoints

File

tests/src/Unit/BlazyManagerUnitTest.php, line 87

Class

BlazyManagerUnitTest
@coversDefaultClass \Drupal\blazy\BlazyManager

Namespace

Drupal\Tests\blazy\Unit

Code

public function testCleanUpBreakpoints($breakpoints, $expected_breakpoints, $blazy, $expected_blazy) {
  $settings['blazy'] = $blazy;
  $settings['breakpoints'] = $breakpoints;
  $this->blazyManager
    ->cleanUpBreakpoints($settings);
  $this
    ->assertEquals($expected_breakpoints, $settings['breakpoints']);
}