Issue #2863984 by Jo Fitzgerald, GoZ, michielnugter: Convert [1/3] web tests to browser tests for responsive_image module
parent
02cd2f439f
commit
3a6a71a991
|
|
@ -1,15 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Drupal\responsive_image\Tests;
|
namespace Drupal\Tests\responsive_image\Functional;
|
||||||
|
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\Tests\BrowserTestBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thoroughly test the administrative interface of the Responsive Image module.
|
* Thoroughly test the administrative interface of the Responsive Image module.
|
||||||
*
|
*
|
||||||
* @group responsive_image
|
* @group responsive_image
|
||||||
*/
|
*/
|
||||||
class ResponsiveImageAdminUITest extends WebTestBase {
|
class ResponsiveImageAdminUITest extends BrowserTestBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Modules to enable.
|
* Modules to enable.
|
||||||
|
|
@ -78,11 +78,11 @@ class ResponsiveImageAdminUITest extends WebTestBase {
|
||||||
);
|
);
|
||||||
foreach ($cases as $case) {
|
foreach ($cases as $case) {
|
||||||
// Check if the radio buttons are present.
|
// Check if the radio buttons are present.
|
||||||
$this->assertFieldByName('keyed_styles[responsive_image_test_module.' . $case[0] . '][' . $case[1] . '][image_mapping_type]', '');
|
$this->assertFieldByName('keyed_styles[responsive_image_test_module.' . $case[0] . '][' . $case[1] . '][image_mapping_type]', NULL);
|
||||||
// Check if the image style dropdowns are present.
|
// Check if the image style dropdowns are present.
|
||||||
$this->assertFieldByName('keyed_styles[responsive_image_test_module.' . $case[0] . '][' . $case[1] . '][image_style]', '');
|
$this->assertFieldByName('keyed_styles[responsive_image_test_module.' . $case[0] . '][' . $case[1] . '][image_style]', NULL);
|
||||||
// Check if the sizes textfields are present.
|
// Check if the sizes textfields are present.
|
||||||
$this->assertFieldByName('keyed_styles[responsive_image_test_module.' . $case[0] . '][' . $case[1] . '][sizes]', '');
|
$this->assertFieldByName('keyed_styles[responsive_image_test_module.' . $case[0] . '][' . $case[1] . '][sizes]', NULL);
|
||||||
|
|
||||||
foreach ($image_styles as $image_style_name) {
|
foreach ($image_styles as $image_style_name) {
|
||||||
// Check if the image styles are available in the dropdowns.
|
// Check if the image styles are available in the dropdowns.
|
||||||
Loading…
Reference in New Issue