Skip to content

Commit fc9f335

Browse files
committed
wire cleanup
1 parent 1c8ef7a commit fc9f335

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/e2e/Adapter/Scopes/CustomDocumentTypeTests.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public function testSetDocumentType(): void
5555
TestUser::class,
5656
$database->getDocumentType('users')
5757
);
58+
59+
// Cleanup
60+
$database->clearDocumentType('users');
5861
}
5962

6063
public function testGetDocumentTypeReturnsNull(): void
@@ -63,6 +66,8 @@ public function testGetDocumentTypeReturnsNull(): void
6366
$database = static::getDatabase();
6467

6568
$this->assertNull($database->getDocumentType('nonexistent_collection'));
69+
70+
// No cleanup needed - no types were set
6671
}
6772

6873
public function testSetDocumentTypeWithInvalidClass(): void
@@ -131,6 +136,9 @@ public function testMethodChaining(): void
131136

132137
$this->assertEquals(TestUser::class, $database->getDocumentType('users'));
133138
$this->assertEquals(TestPost::class, $database->getDocumentType('posts'));
139+
140+
// Cleanup to prevent test pollution
141+
$database->clearAllDocumentTypes();
134142
}
135143

136144
public function testCustomDocumentTypeWithGetDocument(): void

0 commit comments

Comments
 (0)