@@ -448,8 +448,7 @@ public function seeEditablesPlacedOnDocument(Document $document, array $editable
448
448
Debug::debug (sprintf ('[TEST BUNDLE ERROR] error while adding editables to document. message was: ' . $ e ->getMessage ()));
449
449
}
450
450
451
- //\Pimcore::collectGarbage();
452
- \Pimcore \Cache \Runtime::set (sprintf ('document_%s ' , $ document ->getId ()), null );
451
+ \Pimcore::collectGarbage ();
453
452
454
453
$ this ->assertCount (count ($ editables ), VersionHelper::pimcoreVersionIsGreaterOrEqualThan ('6.8.0 ' ) ? $ document ->getEditables () : $ document ->getElements ());
455
454
}
@@ -491,8 +490,7 @@ public function seeAnAreaElementPlacedOnDocument(Document $document, string $are
491
490
Debug::debug (sprintf ('[TEST BUNDLE ERROR] error while adding area element to document. message was: ' . $ e ->getMessage ()));
492
491
}
493
492
494
- //\Pimcore::collectGarbage();
495
- \Pimcore \Cache \Runtime::set (sprintf ('document_%s ' , $ document ->getId ()), null );
493
+ \Pimcore::collectGarbage ();
496
494
497
495
$ this ->assertCount (count ($ editables ), VersionHelper::pimcoreVersionIsGreaterOrEqualThan ('6.8.0 ' ) ? $ document ->getEditables () : $ document ->getElements ());
498
496
}
@@ -698,7 +696,7 @@ public function haveAFrontendTranslatedKey(string $key, string $translation, str
698
696
$ t ->addTranslation ($ language , $ translation );
699
697
$ t ->save ();
700
698
} 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 ()));
702
700
}
703
701
704
702
$ this ->assertInstanceOf (Website::class, $ t );
0 commit comments