function FieldImportDeleteUninstallUiTest::testSynchronizeForm
Same name in other branches
- 10 core/modules/field/tests/src/Functional/FieldImportDeleteUninstallUiTest.php \Drupal\Tests\field\Functional\FieldImportDeleteUninstallUiTest::testSynchronizeForm()
Tests if the synchronization form is available when the core.extension.yml is missing.
File
-
core/
modules/ field/ tests/ src/ Functional/ FieldImportDeleteUninstallUiTest.php, line 134
Class
- FieldImportDeleteUninstallUiTest
- Tests deleting field storage when a module in uninstalled through the UI.
Namespace
Drupal\Tests\field\FunctionalCode
public function testSynchronizeForm() : void {
$sync = $this->container
->get('config.storage.sync');
$this->copyConfig($this->container
->get('config.storage'), $sync);
$sync->delete('core.extension');
$this->drupalGet('admin/config/development/configuration');
$assertSession = $this->assertSession();
$this->assertSession()
->elementExists('css', 'input[value="Import all"]')
->click();
$assertSession->pageTextContains('The core.extension configuration does not exist.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.