function ToolkitSetupFormTest::testGdToolkitRequirements

Same name in other branches
  1. 10 core/tests/Drupal/FunctionalTests/Image/ToolkitSetupFormTest.php \Drupal\FunctionalTests\Image\ToolkitSetupFormTest::testGdToolkitRequirements()

Tests GD toolkit requirements on the Status Report.

File

core/tests/Drupal/FunctionalTests/Image/ToolkitSetupFormTest.php, line 82

Class

ToolkitSetupFormTest
Tests image toolkit setup form.

Namespace

Drupal\FunctionalTests\Image

Code

public function testGdToolkitRequirements() : void {
    // Get Status Report.
    $this->drupalGet('admin/reports/status');
    $this->assertSession()
        ->pageTextContains('GD2 image manipulation toolkit');
    $this->assertSession()
        ->pageTextContains('Supported image file formats: GIF, JPEG, PNG, WEBP.');
}

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