Skip to content

Commit 13f0bad

Browse files
committed
fix
Signed-off-by: dartcafe <github@dartcafe.de>
1 parent b738d7e commit 13f0bad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/Unit/Service/ShareServiceTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,10 @@ public function testAddEmailShareCreatesShare(): void {
108108
$this->assertSame($this->poll->getId(), $share->getPollId());
109109
}
110110

111-
public function testAddDuplicatePublicShareReturnsSameToken(): void {
111+
public function testAddDuplicatePublicShareCreatesNewShare(): void {
112112
$first = $this->shareService->add($this->poll->getId(), Share::TYPE_PUBLIC);
113113
$second = $this->shareService->add($this->poll->getId(), Share::TYPE_PUBLIC);
114-
// ShareAlreadyExistsException is caught internally; same share returned
115-
$this->assertSame($first->getToken(), $second->getToken());
114+
$this->assertNotSame($first->getId(), $second->getId());
116115
}
117116

118117
// --- get ---

0 commit comments

Comments
 (0)