Skip to content

Commit c35d080

Browse files
committed
use full garbage collect
1 parent 070d558 commit c35d080

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/_support/Helper/PimcoreBackend.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,7 @@ public function seeEditablesPlacedOnDocument(Document $document, array $editable
448448
Debug::debug(sprintf('[TEST BUNDLE ERROR] error while adding editables to document. message was: ' . $e->getMessage()));
449449
}
450450

451-
//\Pimcore::collectGarbage();
452-
\Pimcore\Cache\Runtime::set(sprintf('document_%s', $document->getId()), null);
451+
\Pimcore::collectGarbage();
453452

454453
$this->assertCount(count($editables), VersionHelper::pimcoreVersionIsGreaterOrEqualThan('6.8.0') ? $document->getEditables() : $document->getElements());
455454
}
@@ -491,8 +490,7 @@ public function seeAnAreaElementPlacedOnDocument(Document $document, string $are
491490
Debug::debug(sprintf('[TEST BUNDLE ERROR] error while adding area element to document. message was: ' . $e->getMessage()));
492491
}
493492

494-
//\Pimcore::collectGarbage();
495-
\Pimcore\Cache\Runtime::set(sprintf('document_%s', $document->getId()), null);
493+
\Pimcore::collectGarbage();
496494

497495
$this->assertCount(count($editables), VersionHelper::pimcoreVersionIsGreaterOrEqualThan('6.8.0') ? $document->getEditables() : $document->getElements());
498496
}
@@ -698,7 +696,7 @@ public function haveAFrontendTranslatedKey(string $key, string $translation, str
698696
$t->addTranslation($language, $translation);
699697
$t->save();
700698
} catch (\Exception $e) {
701-
Debug::debug(sprintf('[FORMBUILDER ERROR] error while creating translation. message was: ' . $e->getMessage()));
699+
Debug::debug(sprintf('[TEST BUNDLE ERROR] error while creating translation. message was: ' . $e->getMessage()));
702700
}
703701

704702
$this->assertInstanceOf(Website::class, $t);

0 commit comments

Comments
 (0)