diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index fe0843d78..740cb2511 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -367,6 +367,9 @@ public function deleteTableV2(string $user, string $tableName): void { Assert::assertEquals(404, $this->response->getStatusCode()); unset($this->tableIds[$tableName]); + if ($table = $this->collectionManager->getByAlias('table', $tableName)) { + $this->collectionManager->forget('table', $table['id']); + } } /** @@ -915,6 +918,10 @@ public function deleteTable(string $user, string $keyword): void { Assert::assertEquals($deletedTable['title'], $table['title']); Assert::assertEquals($deletedTable['id'], $table['id']); + if ($tableItem = $this->collectionManager->getById('table', $table['id'])) { + $this->collectionManager->forget('table', $tableItem['id']); + } + $this->sendRequest( 'GET', '/apps/tables/api/1/tables/'.$deletedTable['id'],