class ConfigEntityTest
Same name in this branch
- 9 core/modules/config/tests/src/Functional/ConfigEntityTest.php \Drupal\Tests\config\Functional\ConfigEntityTest
Same name and namespace in other branches
- 11.x core/modules/config/tests/src/FunctionalJavascript/ConfigEntityTest.php \Drupal\Tests\config\FunctionalJavascript\ConfigEntityTest
- 11.x core/modules/config/tests/src/Functional/ConfigEntityTest.php \Drupal\Tests\config\Functional\ConfigEntityTest
- 11.x core/modules/migrate/tests/src/Kernel/Plugin/source/ConfigEntityTest.php \Drupal\Tests\migrate\Kernel\Plugin\source\ConfigEntityTest
- 10 core/modules/config/tests/src/FunctionalJavascript/ConfigEntityTest.php \Drupal\Tests\config\FunctionalJavascript\ConfigEntityTest
- 10 core/modules/config/tests/src/Functional/ConfigEntityTest.php \Drupal\Tests\config\Functional\ConfigEntityTest
- 8.9.x core/modules/config/tests/src/FunctionalJavascript/ConfigEntityTest.php \Drupal\Tests\config\FunctionalJavascript\ConfigEntityTest
- 8.9.x core/modules/config/tests/src/Functional/ConfigEntityTest.php \Drupal\Tests\config\Functional\ConfigEntityTest
Tests the Config operations through the UI.
@group config
Hierarchy
- class \Drupal\Tests\BrowserTestBase uses \Drupal\Core\Test\FunctionalTestSetupTrait, \Drupal\Tests\UiHelperTrait, \Drupal\Core\Test\TestSetupTrait, \Drupal\Tests\block\Traits\BlockCreationTrait, \Drupal\FunctionalTests\AssertLegacyTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\node\Traits\NodeCreationTrait, \Drupal\Tests\node\Traits\ContentTypeCreationTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\user\Traits\UserCreationTrait, \Drupal\Tests\XdebugRequestTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, \Drupal\Tests\ExtensionListTestTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\FunctionalJavascriptTests\WebDriverTestBase extends \Drupal\Tests\BrowserTestBase
- class \Drupal\Tests\config\FunctionalJavascript\ConfigEntityTest extends \Drupal\FunctionalJavascriptTests\WebDriverTestBase
- class \Drupal\FunctionalJavascriptTests\WebDriverTestBase extends \Drupal\Tests\BrowserTestBase
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'));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.