Skip to content

Commit

Permalink
fix unittest-names
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattmann committed Jul 15, 2024
1 parent f0067ea commit 38c2456
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testAddChecklistItemIsDeniedForGuest() {
]);
}

public function testAddChecklistItemIsDeniedForMember() {
public function testAddChecklistItemForMember() {
$checklistItemId = static::getFixture('checklistItem1_1_2')->getId();
static::createClientWithCredentials(['email' => static::getFixture('user2member')->getEmail()])
->request('PATCH', $this->endpoint.'/'.$this->defaultEntity->getId(), ['json' => [
Expand All @@ -49,7 +49,7 @@ public function testAddChecklistItemIsDeniedForMember() {
]);
}

public function testAddChecklistItemIsDeniedForManager() {
public function testAddChecklistItemForManager() {
$checklistItemId = static::getFixture('checklistItem1_1_2')->getId();
static::createClientWithCredentials()->request('PATCH', $this->endpoint.'/'.$this->defaultEntity->getId(), ['json' => [
'addChecklistItemIds' => [$checklistItemId],
Expand Down Expand Up @@ -81,7 +81,7 @@ public function testRemoveChecklistItemIsDeniedForGuest() {
]);
}

public function testRemoveChecklistItemIsDeniedForMember() {
public function testRemoveChecklistItemForMember() {
$checklistItem = static::getFixture('checklistItem1_1_1');
static::createClientWithCredentials(['email' => static::getFixture('user2member')->getEmail()])
->request('PATCH', $this->endpoint.'/'.$this->defaultEntity->getId(), ['json' => [
Expand All @@ -93,7 +93,7 @@ public function testRemoveChecklistItemIsDeniedForMember() {
$this->assertFalse(in_array($checklistItem, $checklistNode->getChecklistItems()));
}

public function testRemoveChecklistItemIsDeniedForManager() {
public function testRemoveChecklistItemForManager() {
$checklistItem = static::getFixture('checklistItem1_1_1');
static::createClientWithCredentials()->request('PATCH', $this->endpoint.'/'.$this->defaultEntity->getId(), ['json' => [
'removeChecklistItemIds' => [$checklistItem->getId()],
Expand Down

0 comments on commit 38c2456

Please sign in to comment.