+++ b/src/Tests/ProfileDefaultTest.php
@@ -58,7 +58,6 @@ class ProfileDefaul...

Contribution Date
Technology
Contribution Project
Contribution Details
  1. +++ b/src/Tests/ProfileDefaultTest.php @@ -58,7 +58,6 @@ class ProfileDefaultTest extends ProfileTestBase { - $this->user1->save();

    This was twice. I hope it makes sense to remove this in this issue.

  2. +++ b/src/Tests/ProfileDefaultTest.php @@ -145,17 +144,6 @@ class ProfileDefaultTest extends ProfileTestBase { - $this->user1 = User::create([ - 'name' => $this->randomMachineName(), - 'mail' => $this->randomMachineName() . '@example.com', - ]); - $this->user1->save(); - $this->user2 = User::create([ - 'name' => $this->randomMachineName(), - 'mail' => $this->randomMachineName() . '@example.com', - ]); - $this->user2->save(); -

    It's already there in the setUp()

Question: Do I need to show in the test that user having "edit own profiles" permission gets 403 error while marking profiles as default?

Contribution Author
Files count
0
Patches count
0