Loading core/modules/config/tests/src/Functional/ConfigExportImportUITest.php +12 −17 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ class ConfigExportImportUITest extends BrowserTestBase { */ protected $newSlogan; /** * Holds a content type. * Loading Loading @@ -70,14 +69,6 @@ class ConfigExportImportUITest extends BrowserTestBase { */ protected static $modules = ['config', 'node', 'field']; /** * {@inheritdoc} * * @todo Remove and fix test to not rely on super user. * @see https://www.drupal.org/project/drupal/issues/3437620 */ protected bool $usesSuperUserAccessPolicy = TRUE; /** * {@inheritdoc} */ Loading @@ -88,11 +79,18 @@ class ConfigExportImportUITest extends BrowserTestBase { */ protected function setUp(): void { parent::setUp(); // The initial import must be done with uid 1 because if separately named // roles are created then the role is lost after import. If the roles // created have the same name then the sync will fail because they will // have different UUIDs. $this->drupalLogin($this->rootUser); // Create a content type. $this->contentType = $this->drupalCreateContentType(['type' => 'test']); $this->drupalLogin($this->drupalCreateUser([ 'export configuration', 'import configuration', 'synchronize configuration', 'access administration pages', 'administer site configuration', 'create test content', 'view the administration theme', ])); } /** Loading @@ -112,9 +110,6 @@ public function testExportImport() { ->save(); $this->assertEquals($this->newSlogan, $this->config('system.site')->get('slogan')); // Create a content type. $this->contentType = $this->drupalCreateContentType(); // Create a field. $this->fieldName = $this->randomMachineName(); $this->fieldStorage = FieldStorageConfig::create([ Loading core/modules/config/tests/src/Functional/LanguageNegotiationFormOverrideTest.php +7 −7 Original line number Diff line number Diff line Loading @@ -14,15 +14,10 @@ */ class LanguageNegotiationFormOverrideTest extends BrowserTestBase { protected static $modules = ['language', 'locale', 'locale_test']; /** * {@inheritdoc} * * @todo Remove and fix test to not rely on super user. * @see https://www.drupal.org/project/drupal/issues/3437620 */ protected bool $usesSuperUserAccessPolicy = TRUE; protected static $modules = ['language', 'locale', 'locale_test']; /** * {@inheritdoc} Loading @@ -33,7 +28,12 @@ class LanguageNegotiationFormOverrideTest extends BrowserTestBase { * Tests that overrides do not affect language-negotiation form values. */ public function testFormWithOverride() { $this->drupalLogin($this->rootUser); $this->drupalLogin($this->drupalCreateUser([ 'access administration pages', 'administer site configuration', 'administer languages', 'view the administration theme', ])); $overridden_value_en = 'whatever'; $overridden_value_es = 'loquesea'; Loading Loading
core/modules/config/tests/src/Functional/ConfigExportImportUITest.php +12 −17 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ class ConfigExportImportUITest extends BrowserTestBase { */ protected $newSlogan; /** * Holds a content type. * Loading Loading @@ -70,14 +69,6 @@ class ConfigExportImportUITest extends BrowserTestBase { */ protected static $modules = ['config', 'node', 'field']; /** * {@inheritdoc} * * @todo Remove and fix test to not rely on super user. * @see https://www.drupal.org/project/drupal/issues/3437620 */ protected bool $usesSuperUserAccessPolicy = TRUE; /** * {@inheritdoc} */ Loading @@ -88,11 +79,18 @@ class ConfigExportImportUITest extends BrowserTestBase { */ protected function setUp(): void { parent::setUp(); // The initial import must be done with uid 1 because if separately named // roles are created then the role is lost after import. If the roles // created have the same name then the sync will fail because they will // have different UUIDs. $this->drupalLogin($this->rootUser); // Create a content type. $this->contentType = $this->drupalCreateContentType(['type' => 'test']); $this->drupalLogin($this->drupalCreateUser([ 'export configuration', 'import configuration', 'synchronize configuration', 'access administration pages', 'administer site configuration', 'create test content', 'view the administration theme', ])); } /** Loading @@ -112,9 +110,6 @@ public function testExportImport() { ->save(); $this->assertEquals($this->newSlogan, $this->config('system.site')->get('slogan')); // Create a content type. $this->contentType = $this->drupalCreateContentType(); // Create a field. $this->fieldName = $this->randomMachineName(); $this->fieldStorage = FieldStorageConfig::create([ Loading
core/modules/config/tests/src/Functional/LanguageNegotiationFormOverrideTest.php +7 −7 Original line number Diff line number Diff line Loading @@ -14,15 +14,10 @@ */ class LanguageNegotiationFormOverrideTest extends BrowserTestBase { protected static $modules = ['language', 'locale', 'locale_test']; /** * {@inheritdoc} * * @todo Remove and fix test to not rely on super user. * @see https://www.drupal.org/project/drupal/issues/3437620 */ protected bool $usesSuperUserAccessPolicy = TRUE; protected static $modules = ['language', 'locale', 'locale_test']; /** * {@inheritdoc} Loading @@ -33,7 +28,12 @@ class LanguageNegotiationFormOverrideTest extends BrowserTestBase { * Tests that overrides do not affect language-negotiation form values. */ public function testFormWithOverride() { $this->drupalLogin($this->rootUser); $this->drupalLogin($this->drupalCreateUser([ 'access administration pages', 'administer site configuration', 'administer languages', 'view the administration theme', ])); $overridden_value_en = 'whatever'; $overridden_value_es = 'loquesea'; Loading