class ConfigEntityTest in Drupal 10
Same name in this branch
- 10 core/modules/config/tests/src/Functional/ConfigEntityTest.php \Drupal\Tests\config\Functional\ConfigEntityTest
- 10 core/modules/config/tests/src/FunctionalJavascript/ConfigEntityTest.php \Drupal\Tests\config\FunctionalJavascript\ConfigEntityTest
Same name and namespace in other branches
- 8 core/modules/config/tests/src/FunctionalJavascript/ConfigEntityTest.php \Drupal\Tests\config\FunctionalJavascript\ConfigEntityTest
- 9 core/modules/config/tests/src/FunctionalJavascript/ConfigEntityTest.php \Drupal\Tests\config\FunctionalJavascript\ConfigEntityTest
Tests the Config operations through the UI.
@group config
Hierarchy
- class \Drupal\Tests\BrowserTestBase extends \PHPUnit\Framework\TestCase uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, FunctionalTestSetupTrait, TestSetupTrait, BlockCreationTrait, ConfigTestTrait, ExtensionListTestTrait, ContentTypeCreationTrait, NodeCreationTrait, RandomGeneratorTrait, TestRequirementsTrait, PhpUnitWarnings, UiHelperTrait, UserCreationTrait, XdebugRequestTrait
- class \Drupal\FunctionalJavascriptTests\WebDriverTestBase
- class \Drupal\Tests\config\FunctionalJavascript\ConfigEntityTest
- class \Drupal\FunctionalJavascriptTests\WebDriverTestBase
Expanded class hierarchy of ConfigEntityTest
File
- core/
modules/ config/ tests/ src/ FunctionalJavascript/ ConfigEntityTest.php, line 12
Namespace
Drupal\Tests\config\FunctionalJavascriptView source
class ConfigEntityTest extends WebDriverTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'config_test',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Tests ajax operations through the UI on 'Add' page.
*/
public function testAjaxOnAddPage() {
$this
->drupalLogin($this
->drupalCreateUser([
'administer site configuration',
]));
$page = $this
->getSession()
->getPage();
$assert_session = $this
->assertSession();
$this
->drupalGet('admin/structure/config_test/add');
// Test that 'size value' field is not show initially, and it is show after
// selecting value in the 'size' field.
$this
->assertNull($page
->findField('size_value'));
$page
->findField('size')
->setValue('custom');
$this
->assertNotNull($assert_session
->waitForField('size_value'));
}
}