You are here

private function SettingsDataTrait::getValidThumbnailSettings in Acquia Lift Connector 8

Same name in this branch
  1. 8 src/Tests/SettingsDataTrait.php \Drupal\acquia_lift\Tests\SettingsDataTrait::getValidThumbnailSettings()
  2. 8 tests/src/Unit/Traits/SettingsDataTrait.php \Drupal\Tests\acquia_lift\Unit\Traits\SettingsDataTrait::getValidThumbnailSettings()

Get a valid thumbnail settings array.

Return value

array A valid thumbnail settings array.

3 calls to SettingsDataTrait::getValidThumbnailSettings()
NodeTypeThumbnailFormHelperTest::testGetFormWithFieldAndStyle in tests/src/Unit/Service/Helper/NodeTypeThumbnailFormHelperTest.php
Tests the getForm() method, with an image field and with style.
NodeTypeThumbnailFormHelperTest::testSaveSettings in tests/src/Unit/Service/Helper/NodeTypeThumbnailFormHelperTest.php
Tests the saveSettings() method.
PageContextTest::setUp in tests/src/Unit/Service/Context/PageContextTest.php

File

tests/src/Unit/Traits/SettingsDataTrait.php, line 66
Contains \Drupal\Tests\acquia_lift\Unit\Traits\SettingsDataTrait.

Class

SettingsDataTrait
Settings Data Trait.

Namespace

Drupal\Tests\acquia_lift\Unit\Traits

Code

private function getValidThumbnailSettings() {
  return [
    'article' => [
      'field' => 'field_media->field_image',
      'style' => 'medium',
    ],
  ];
}