We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d4b31c + e1e0f1c commit d21dee9Copy full SHA for d21dee9
1 file changed
apps/settings/tests/Integration/DuplicateAssignmentIntegrationTest.php
@@ -150,10 +150,10 @@ public function testMapperFindsExistingRecord(): void {
150
$created = $this->service->create($groupId, $class);
151
152
// Now mapper should find it
153
- $found = $this->mapper->findByGroupIdAndClass($groupId, $class);
+ $matches = $this->mapper->findExistingGroupsForClass($class);
154
155
- $this->assertEquals($created->getId(), $found->getId());
156
- $this->assertEquals($groupId, $found->getGroupId());
157
- $this->assertEquals($class, $found->getClass());
+ $this->assertCount(1, $matches);
+ $this->assertEquals($groupId, $matches[0]->getGroupId());
+ $this->assertEquals($class, $matches[0]->getClass());
158
}
159
0 commit comments