- Issue created by @vensires
- First commit to issue fork.
- Status changed to Needs review
7 months ago 4:34pm 10 April 2024 - ๐ฒ๐ฉMoldova thebumik
Would greatly appreciate it if someone could review my pull request for this. Any feedback would be invaluable!
- Status changed to Needs work
7 months ago 2:03am 11 April 2024 - ๐บ๐ธUnited States nicxvan
Webuser2 has a duplicate permission, can you clean that up please?
- Status changed to Needs review
7 months ago 5:16am 11 April 2024 - ๐ง๐ชBelgium kristiaanvandeneynde Antwerp, Belgium
Small nitpick: I would keep the order of the user properties like it was. Now you have $webUser2 first with a comment calling it "a secondary user" before you even configured your primary user. It's a bit confusing in this order.
Suggestion: $adminUser above $webUser2.
- Status changed to RTBC
7 months ago 2:28pm 11 April 2024 - ๐บ๐ธUnited States smustgrave
Seems feedback has been addressed and think these permissions should be good
- Status changed to Needs work
7 months ago 9:06pm 11 April 2024 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Left a minor comment on the MR, fine to self RTBC once fixed
- Status changed to RTBC
7 months ago 8:39am 12 April 2024 - First commit to issue fork.
- Status changed to Needs work
7 months ago 8:30pm 12 April 2024 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
I've added some comments to the MR... I don't think we should be overwriting the adminUser with a new user.
- ๐ฎ๐ณIndia pradhumanjainOSL
pradhumanjain2311 โ made their first commit to this issueโs fork.
- Status changed to Needs review
7 months ago 1:34pm 15 April 2024 - Status changed to RTBC
7 months ago 7:25pm 15 April 2024 - ๐บ๐ธUnited States smustgrave
Not a huge fan of "more_admin_role" but it's a test so not a big deal to me.
- Status changed to Fixed
7 months ago 9:07am 16 April 2024 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Committed and pushed 2b0321c170 to 11.x and d35edb34b2 to 10.3.x. Thanks!
Made the following changes on commit
diff --git a/core/modules/comment/tests/src/Functional/CommentStatisticsTest.php b/core/modules/comment/tests/src/Functional/CommentStatisticsTest.php index a8d5909e68..9a309f16e0 100644 --- a/core/modules/comment/tests/src/Functional/CommentStatisticsTest.php +++ b/core/modules/comment/tests/src/Functional/CommentStatisticsTest.php @@ -7,7 +7,6 @@ use Drupal\comment\CommentInterface; use Drupal\comment\CommentManagerInterface; use Drupal\comment\Entity\Comment; -use Drupal\user\UserInterface; /** * Tests comment statistics on nodes. @@ -21,7 +20,7 @@ class CommentStatisticsTest extends CommentTestBase { * * @var \Drupal\user\UserInterface */ - protected UserInterface $webUser2; + protected $webUser2; /** * {@inheritdoc} @@ -35,12 +34,11 @@ protected function setUp(): void { parent::setUp(); // Add more permissions the admin user. - $more_admin_role = $this->drupalCreateRole([ + $this->adminUser->addRole($this->drupalCreateRole([ 'administer permissions', 'access administration pages', 'administer site configuration', - ]); - $this->adminUser->addRole($more_admin_role)->save(); + ]))->save(); // Create a second user to post comments. $this->webUser2 = $this->drupalCreateUser([ 'post comments',
Removed the unnecessary variable and reverted out of scope changes.
-
alexpott โ
committed d35edb34 on 10.3.x
Issue #3439830 by thebumik, alexpott, pradhumanjain2311, vensires,...
-
alexpott โ
committed d35edb34 on 10.3.x
-
alexpott โ
committed e4e23732 on 11.x
Issue #3439830 by thebumik, alexpott, pradhumanjain2311, vensires,...
-
alexpott โ
committed e4e23732 on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.