1737714-10.1.x
Closes #1737714
Merge request reports
Activity
added 5 commits
-
f13271e2...9d296187 - 2 commits from branch
project:10.1.x
- a9e05c2c - 1737714-10.1.x
- 192f17b8 - 1737714-10.1.x
- 4e0d0d50 - 1737714-10.1.x
Toggle commit list-
f13271e2...9d296187 - 2 commits from branch
added 31 commits
-
255d4a7b...a9301ea8 - 27 commits from branch
project:10.1.x
- d2c38c54 - 1737714-10.1.x
- 11b8a84c - 1737714-10.1.x
- cf757591 - 1737714-10.1.x
- 4982eafa - 1737714-10.1.x
Toggle commit list-
255d4a7b...a9301ea8 - 27 commits from branch
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. changed this line in version 8 of the diff
92 93 $this->submitForm($edit, 'Preview'); 93 94 } 94 95 96 /** 97 * Create a random style. changed this line in version 8 of the diff
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']); changed this line in version 8 of the diff
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. changed this line in version 8 of the diff
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. changed this line in version 8 of the diff
Please register or sign in to reply