public function BlazyManagerUnitTest::testConfigLoad in Blazy 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/BlazyManagerUnitTest.php \Drupal\Tests\blazy\Unit\BlazyManagerUnitTest::testConfigLoad()
Tests cases for config.
@covers ::configLoad
File
- tests/
src/ Unit/ BlazyManagerUnitTest.php, line 53
Class
- BlazyManagerUnitTest
- @coversDefaultClass \Drupal\blazy\BlazyManager
Namespace
Drupal\Tests\blazy\UnitCode
public function testConfigLoad() {
$blazy = $this->blazyManager
->configLoad('blazy');
$this
->assertArrayHasKey('loadInvisible', $blazy);
$admin_css = $this->blazyManager
->configLoad('admin_css', 'blazy.settings');
$this
->assertTrue($admin_css, 'Blazy admin CSS is enabled by default.');
$responsive_image = $this->blazyManager
->configLoad('responsive_image');
$this
->assertTrue($responsive_image, 'Responsive image was disabled by default, yet enabled now.');
}