Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
godefroy-le-hardi committed Dec 11, 2024
1 parent 1d2a60d commit efa137c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ public function testRequestFormationWithNewSerial(): void

private function prepareTestData(): void
{
$this->cleanupServersData();

$shopPath = __DIR__ . DIRECTORY_SEPARATOR;

$this->xmlLog = sprintf('%s/%s.xml', __DIR__, uniqid('request_log_', true));
Expand Down Expand Up @@ -249,13 +251,18 @@ private function getApplicationServerExporter(): ApplicationServerExporterInterf

private function cleanUpTestData(): void
{
DatabaseProvider::getDb()->execute("DELETE FROM oxconfig WHERE oxvarname like 'aServersData_%'");
$this->cleanupServersData();
$fileSystem = $this->get('oxid_esales.symfony.file_system');
if ($fileSystem->exists($this->xmlLog)) {
$fileSystem->remove($this->xmlLog);
}
}

private function cleanupServersData(): void
{
DatabaseProvider::getDb()->execute("DELETE FROM oxconfig WHERE oxvarname like 'aServersData_%'");
}

private function getActiveAdminCount(): int
{
return (int) DatabaseProvider::getDb()
Expand Down

0 comments on commit efa137c

Please sign in to comment.