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