function StandardTestTrait::installResponsiveImage

Same name in other branches
  1. 11.x core/profiles/standard/tests/src/Traits/StandardTestTrait.php \Drupal\Tests\standard\Traits\StandardTestTrait::installResponsiveImage()

Installs the responsive image module.

1 call to StandardTestTrait::installResponsiveImage()
StandardTestTrait::testStandard in core/profiles/standard/tests/src/Traits/StandardTestTrait.php
Tests Standard installation profile or recipe.
2 methods override StandardTestTrait::installResponsiveImage()
StandardRecipeInstallTest::installResponsiveImage in core/tests/Drupal/FunctionalTests/Core/Recipe/StandardRecipeInstallTest.php
Installs the responsive image module.
StandardRecipeTest::installResponsiveImage in core/tests/Drupal/FunctionalTests/Core/Recipe/StandardRecipeTest.php
Installs the responsive image module.

File

core/profiles/standard/tests/src/Traits/StandardTestTrait.php, line 309

Class

StandardTestTrait
Provides a test method to test the Standard installation profile or recipe.

Namespace

Drupal\Tests\standard\Traits

Code

protected function installResponsiveImage() : void {
    // Install responsive_image module.
    \Drupal::service('module_installer')->install([
        'responsive_image',
    ]);
    $this->rebuildContainer();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.