You are here

public function ImageEffectsTestBase::providerToolkits in Image Effects 8.3

Same name and namespace in other branches
  1. 8 tests/src/Functional/ImageEffectsTestBase.php \Drupal\Tests\image_effects\Functional\ImageEffectsTestBase::providerToolkits()
  2. 8.2 tests/src/Functional/ImageEffectsTestBase.php \Drupal\Tests\image_effects\Functional\ImageEffectsTestBase::providerToolkits()

Provides toolkit data for testing.

Return value

array[] An associative array, with key the toolkit scenario to be tested, and value an associative array with the following keys:

  • 'toolkit_id': the toolkit to be used in the test.
  • 'toolkit_config': the config object of the toolkit.
  • 'toolkit_settings': an associative array of toolkit settings.
13 calls to ImageEffectsTestBase::providerToolkits()
BackgroundTest::providerToolkits in tests/src/Functional/Effect/BackgroundTest.php
Provides toolkit data for testing.
BrightnessTest::providerToolkits in tests/src/Functional/Effect/BrightnessTest.php
Provides toolkit data for testing.
ColorShiftTest::providerToolkits in tests/src/Functional/Effect/ColorShiftTest.php
Provides toolkit data for testing.
ContrastTest::providerToolkits in tests/src/Functional/Effect/ContrastTest.php
Provides toolkit data for testing.
ConvolutionSharpenTest::providerToolkits in tests/src/Functional/Effect/ConvolutionSharpenTest.php
Provides toolkit data for testing.

... See full list

13 methods override ImageEffectsTestBase::providerToolkits()
BackgroundTest::providerToolkits in tests/src/Functional/Effect/BackgroundTest.php
Provides toolkit data for testing.
BrightnessTest::providerToolkits in tests/src/Functional/Effect/BrightnessTest.php
Provides toolkit data for testing.
ColorShiftTest::providerToolkits in tests/src/Functional/Effect/ColorShiftTest.php
Provides toolkit data for testing.
ContrastTest::providerToolkits in tests/src/Functional/Effect/ContrastTest.php
Provides toolkit data for testing.
ConvolutionSharpenTest::providerToolkits in tests/src/Functional/Effect/ConvolutionSharpenTest.php
Provides toolkit data for testing.

... See full list

File

tests/src/Functional/ImageEffectsTestBase.php, line 184

Class

ImageEffectsTestBase
Base test class for image_effects tests.

Namespace

Drupal\Tests\image_effects\Functional

Code

public function providerToolkits() {
  return [
    'GD' => [
      'toolkit_id' => 'gd',
      'toolkit_config' => 'system.image.gd',
      'toolkit_settings' => [
        'jpeg_quality' => 100,
      ],
    ],
    'ImageMagick-imagemagick' => [
      'toolkit_id' => 'imagemagick',
      'toolkit_config' => 'imagemagick.settings',
      'toolkit_settings' => [
        'binaries' => 'imagemagick',
        'quality' => 100,
        'debug' => TRUE,
      ],
    ],
    'ImageMagick-graphicsmagick' => [
      'toolkit_id' => 'imagemagick',
      'toolkit_config' => 'imagemagick.settings',
      'toolkit_settings' => [
        'binaries' => 'graphicsmagick',
        'quality' => 100,
        'debug' => TRUE,
      ],
    ],
  ];
}