You are here

public function BlazyTest::testConfig in Blazy 7

Tests cases for config.

@covers \Drupal\blazy\BlazyManager::config

File

tests/Blazy.test, line 184

Class

BlazyTest
Tests the Blazy configuration options and permission controls.

Code

public function testConfig() {
  $blazy = blazy()
    ->config('blazy');
  $this
    ->assertNotNull($blazy['loadInvisible'], 'blazy.loadInvisible exists');
  $admin_css = blazy()
    ->config('admin_css');
  $this
    ->assertTrue($admin_css, 'Blazy admin CSS is enabled by default.');
  $responsive_image = blazy()
    ->config('responsive_image');
  $this
    ->assertFalse($responsive_image, 'Picture is disabled by default.');
}