You are here

protected property AspectSwitcherTest::$effects in Image Effects 8

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/Effect/AspectSwitcherTest.php \Drupal\Tests\image_effects\Functional\Effect\AspectSwitcherTest::effects
  2. 8.2 tests/src/Functional/Effect/AspectSwitcherTest.php \Drupal\Tests\image_effects\Functional\Effect\AspectSwitcherTest::effects

Effects.

Define 2 distinguishable effects that will be used to assert that the correct image style (and therefore image effects) is being applied to the image.

Type: array

File

tests/src/Functional/Effect/AspectSwitcherTest.php, line 25

Class

AspectSwitcherTest
AspectSwitcher effect test.

Namespace

Drupal\Tests\image_effects\Functional\Effect

Code

protected $effects = [
  'landscape' => [
    'id' => 'image_resize',
    'data' => [
      'width' => 5,
      'height' => 5,
    ],
  ],
  'portrait' => [
    'id' => 'image_resize',
    'data' => [
      'width' => 10,
      'height' => 10,
    ],
  ],
];