Skip to content

Commit e4585eb

Browse files
turegjorupclaude
andcommitted
Fix testUnlinkSlide using same slide for both lookups
findIriBy with identical criteria returned the same slide for both $slideUlid1 and $slideUlid2, so the PUT created only one relation. The first DELETE succeeded but the second failed with "Relation not found". Use distinct slide titles to get two different slides. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 50073e0 commit e4585eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Api/PlaylistSlideTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ public function testUnlinkSlide(): void
158158
$iri = $this->findIriBy(Playlist::class, ['tenant' => $this->tenant]);
159159
$playlistUlid = $this->iriHelperUtils->getUlidFromIRI($iri);
160160

161-
$iri = $this->findIriBy(Slide::class, ['tenant' => $this->tenant]);
161+
$iri = $this->findIriBy(Slide::class, ['tenant' => $this->tenant, 'title' => 'slide_abc_2']);
162162
$slideUlid1 = $this->iriHelperUtils->getUlidFromIRI($iri);
163-
$iri = $this->findIriBy(Slide::class, ['tenant' => $this->tenant]);
163+
$iri = $this->findIriBy(Slide::class, ['tenant' => $this->tenant, 'title' => 'slide_abc_3']);
164164
$slideUlid2 = $this->iriHelperUtils->getUlidFromIRI($iri);
165165

166166
// First create relations to ensure they exist before deleting theme.

0 commit comments

Comments
 (0)