Skip to content

Commit

Permalink
CT-1703 - fix tests 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtabiberle committed Aug 30, 2024
1 parent 219eece commit faf1662
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/ProjectMembershipRolesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class ProjectMembershipRolesTest extends ClientMfaTestCase
{
private const SHARE_ROLE_EXPECTED_ERROR = 'Only member of the project\'s organization can grant "share" role to other users.';

private const CAN_MANAGE_PROJECT_SETTINGS_FEATURE_NAME = 'can-update-project-settings';

/** @var array */
private $organization;

Expand All @@ -26,6 +28,14 @@ public function setUp(): void
{
parent::setUp();

$featuresToRemoveFromUsers = [
self::CAN_MANAGE_PROJECT_SETTINGS_FEATURE_NAME,
];

foreach ($featuresToRemoveFromUsers as $feature) {
$this->client->removeUserFeature($this->normalUser['email'], $feature);
}

$this->client->addUserToMaintainer($this->testMaintainerId, ['email' => $this->normalUserWithMfa['email']]);

$this->organization = $this->normalUserWithMfaClient->createOrganization($this->testMaintainerId, [
Expand Down

0 comments on commit faf1662

Please sign in to comment.