Loading core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php +3 −9 Original line number Diff line number Diff line Loading @@ -25,14 +25,6 @@ class EntityReferenceXSSTest extends BrowserTestBase { */ protected static $modules = ['node']; /** * {@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 Loading @@ -68,7 +60,9 @@ public function testEntityReferenceXSS(): void { ->save(); // Create a node and reference the node with markup in the title. $this->drupalLogin($this->rootUser); $this->drupalLogin($this->drupalCreateUser([ 'create article content', ])); $this->drupalGet('node/add/article'); $this->assertSession()->assertEscaped($referenced_node->getTitle()); $this->assertSession()->assertEscaped($node_type_two->label()); Loading core/modules/field/tests/src/Functional/FieldDefaultValueCallbackTest.php +4 −10 Original line number Diff line number Diff line Loading @@ -22,14 +22,6 @@ class FieldDefaultValueCallbackTest extends BrowserTestBase { */ protected static $modules = ['node', 'field_test', 'field_ui']; /** * {@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 Loading @@ -58,6 +50,10 @@ protected function setUp(): void { ]); } $this->drupalLogin($this->drupalCreateUser([ 'administer node fields', ])); } public function testDefaultValueCallbackForm(): void { Loading @@ -76,8 +72,6 @@ public function testDefaultValueCallbackForm(): void { ]); $field_config->save(); $this->drupalLogin($this->rootUser); // Check that the default field form is visible when no callback is set. $this->drupalGet('/admin/structure/types/manage/article/fields/node.article.field_test'); $this->assertSession()->fieldValueEquals('default_value_input[field_test][0][value]', ''); Loading core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php +7 −9 Original line number Diff line number Diff line Loading @@ -22,14 +22,6 @@ class FieldUIRouteTest extends BrowserTestBase { */ protected static $modules = ['block', 'entity_test', 'field_ui']; /** * {@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 @@ -41,7 +33,6 @@ class FieldUIRouteTest extends BrowserTestBase { protected function setUp(): void { parent::setUp(); $this->drupalLogin($this->rootUser); $this->drupalPlaceBlock('local_tasks_block'); } Loading @@ -49,6 +40,13 @@ protected function setUp(): void { * Ensures that entity types with bundles do not break following entity types. */ public function testFieldUIRoutes(): void { $this->drupalLogin($this->drupalCreateUser([ 'administer account settings', 'administer entity_test_no_id fields', 'administer user fields', 'administer user form display', 'administer user display', ])); $this->drupalGet('entity_test_no_id/structure/entity_test/fields'); $this->assertSession()->pageTextContains('No fields are present yet.'); Loading Loading
core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php +3 −9 Original line number Diff line number Diff line Loading @@ -25,14 +25,6 @@ class EntityReferenceXSSTest extends BrowserTestBase { */ protected static $modules = ['node']; /** * {@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 Loading @@ -68,7 +60,9 @@ public function testEntityReferenceXSS(): void { ->save(); // Create a node and reference the node with markup in the title. $this->drupalLogin($this->rootUser); $this->drupalLogin($this->drupalCreateUser([ 'create article content', ])); $this->drupalGet('node/add/article'); $this->assertSession()->assertEscaped($referenced_node->getTitle()); $this->assertSession()->assertEscaped($node_type_two->label()); Loading
core/modules/field/tests/src/Functional/FieldDefaultValueCallbackTest.php +4 −10 Original line number Diff line number Diff line Loading @@ -22,14 +22,6 @@ class FieldDefaultValueCallbackTest extends BrowserTestBase { */ protected static $modules = ['node', 'field_test', 'field_ui']; /** * {@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 Loading @@ -58,6 +50,10 @@ protected function setUp(): void { ]); } $this->drupalLogin($this->drupalCreateUser([ 'administer node fields', ])); } public function testDefaultValueCallbackForm(): void { Loading @@ -76,8 +72,6 @@ public function testDefaultValueCallbackForm(): void { ]); $field_config->save(); $this->drupalLogin($this->rootUser); // Check that the default field form is visible when no callback is set. $this->drupalGet('/admin/structure/types/manage/article/fields/node.article.field_test'); $this->assertSession()->fieldValueEquals('default_value_input[field_test][0][value]', ''); Loading
core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php +7 −9 Original line number Diff line number Diff line Loading @@ -22,14 +22,6 @@ class FieldUIRouteTest extends BrowserTestBase { */ protected static $modules = ['block', 'entity_test', 'field_ui']; /** * {@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 @@ -41,7 +33,6 @@ class FieldUIRouteTest extends BrowserTestBase { protected function setUp(): void { parent::setUp(); $this->drupalLogin($this->rootUser); $this->drupalPlaceBlock('local_tasks_block'); } Loading @@ -49,6 +40,13 @@ protected function setUp(): void { * Ensures that entity types with bundles do not break following entity types. */ public function testFieldUIRoutes(): void { $this->drupalLogin($this->drupalCreateUser([ 'administer account settings', 'administer entity_test_no_id fields', 'administer user fields', 'administer user form display', 'administer user display', ])); $this->drupalGet('entity_test_no_id/structure/entity_test/fields'); $this->assertSession()->pageTextContains('No fields are present yet.'); Loading