Skip to content

Commit 4baaa8c

Browse files
committed
test: alias tear down
1 parent f2d043e commit 4baaa8c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/TestCase.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function getData(string $name): array
4040

4141
private function loadFromDataDir(string $path): array
4242
{
43-
if (! file_exists($path)) {
43+
if (!file_exists($path)) {
4444
return [];
4545
}
4646

@@ -84,5 +84,10 @@ private function tearDownTypesense(): void
8484
foreach ($collections as $collection) {
8585
$this->typesenseClient->collections[$collection['name']]->delete();
8686
}
87+
88+
$aliases = $this->typesenseClient->aliases->retrieve();
89+
foreach ($aliases['aliases'] as $alias) {
90+
$this->typesenseClient->aliases[$alias['name']]->delete();
91+
}
8792
}
8893
}

0 commit comments

Comments
 (0)