Skip to content
Snippets Groups Projects

1737714-10.1.x

Open Rolando Payán Mosqueda requested to merge issue/drupal-1737714:1737714-10.1.x into 11.x

Closes #1737714

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
3 namespace Drupal\Tests\image\Functional;
4
5 use Drupal\image\Entity\ImageStyle;
6
7 /**
8 * Tests the image style administration UI.
9 *
10 * @group image
11 */
12 class ImageAdminUiTest extends ImageFieldTestBase {
13
14 /**
15 * Modules to enable.
16 *
17 * @var array
18 */
  • 92 93 $this->submitForm($edit, 'Preview');
    93 94 }
    94 95
    96 /**
    97 * Create a random style.
    98 *
    99 * @param string $style_name
    100 * The name of the style to create.
    101 * @param string $style_label
    102 * The label of the style to create.
    103 *
    104 * @return \Drupal\image\ImageStyleInterface
    105 * A list containing the details of the generated image style.
  • 92 93 $this->submitForm($edit, 'Preview');
    93 94 }
    94 95
    96 /**
    97 * Create a random style.
  • 18 */
    19 protected static $modules = ['help', 'block', 'system'];
    20
    21 /**
    22 * {@inheritdoc}
    23 */
    24 protected $defaultTheme = 'stark';
    25
    26 /**
    27 * Tests that if the help text is available on the add effect form.
    28 */
    29 public function testAddEffectHelpText(): void {
    30 $style = $this->createStyle('test_style', 'Test style');
    31
    32 // Add the help block to the page.
    33 $this->drupalPlaceBlock('help_block', ['region' => 'help', 'id' => 'block-help']);
  • 12 class ImageAdminUiTest extends ImageFieldTestBase {
    13
    14 /**
    15 * Modules to enable.
    16 *
    17 * @var array
    18 */
    19 protected static $modules = ['help', 'block', 'system'];
    20
    21 /**
    22 * {@inheritdoc}
    23 */
    24 protected $defaultTheme = 'stark';
    25
    26 /**
    27 * Tests that if the help text is available on the add effect form.
  • 27 * Tests that if the help text is available on the add effect form.
    28 */
    29 public function testAddEffectHelpText(): void {
    30 $style = $this->createStyle('test_style', 'Test style');
    31
    32 // Add the help block to the page.
    33 $this->drupalPlaceBlock('help_block', ['region' => 'help', 'id' => 'block-help']);
    34
    35 // Open the add effect form and check for the help text.
    36 $this->drupalGet($style->toUrl()->toString() . '/add/image_resize');
    37
    38 $this->assertSession()->pageTextContains('Resizing will make images an exact set of dimensions. This may cause images to be stretched or shrunk disproportionately.');
    39 }
    40
    41 /**
    42 * Tests that if the help text is available on the edit effect form.
  • added 1 commit

    Compare with previous version

  • Sourabh Jain added 1 commit

    added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Sahil Goyal added 1 commit

    added 1 commit

    Compare with previous version

  • Sahil Goyal added 1 commit

    added 1 commit

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading