File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 ---
You can’t perform that action at this time.
0 commit comments