Mercurial > hg > isophonics-drupal-site
view core/modules/config/tests/src/FunctionalJavascript/ConfigEntityTest.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
line wrap: on
line source
<?php namespace Drupal\Tests\config\FunctionalJavascript; use Drupal\FunctionalJavascriptTests\JavascriptTestBase; /** * Tests the Config operations through the UI. * * @group config */ class ConfigEntityTest extends JavascriptTestBase { /** * {@inheritdoc} */ public static $modules = ['config_test']; /** * 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')); } }