@@ -440,6 +440,8 @@ public function seeEditablesPlacedOnDocument(Document $document, array $editable
440
440
Debug::debug (sprintf ('[TEST BUNDLE ERROR] error while adding editables to document. message was: ' . $ e ->getMessage ()));
441
441
}
442
442
443
+ \Pimcore::collectGarbage ();
444
+
443
445
$ this ->assertCount (count ($ editables ), VersionHelper::pimcoreVersionIsGreaterOrEqualThan ('6.8.0 ' ) ? $ document ->getEditables () : $ document ->getElements ());
444
446
}
445
447
@@ -451,7 +453,6 @@ public function seeEditablesPlacedOnDocument(Document $document, array $editable
451
453
* @param array $editables
452
454
*
453
455
* @throws ModuleException
454
- * @deprecated
455
456
*/
456
457
public function seeAnAreaElementPlacedOnDocument (Document $ document , string $ areaName , array $ editables = [])
457
458
{
@@ -477,6 +478,8 @@ public function seeAnAreaElementPlacedOnDocument(Document $document, string $are
477
478
Debug::debug (sprintf ('[TEST BUNDLE ERROR] error while adding area element to document. message was: ' . $ e ->getMessage ()));
478
479
}
479
480
481
+ \Pimcore::collectGarbage ();
482
+
480
483
$ this ->assertCount (count ($ editables ), VersionHelper::pimcoreVersionIsGreaterOrEqualThan ('6.8.0 ' ) ? $ document ->getEditables () : $ document ->getElements ());
481
484
}
482
485
@@ -823,6 +826,7 @@ public function generatePageDocument($key = 'test-page', $params = [], $locale =
823
826
$ document = TestHelper::createEmptyDocumentPage ('' , false );
824
827
825
828
$ document ->setKey ($ key );
829
+ $ document ->setPublished (true );
826
830
$ document ->setProperty ('navigation_title ' , 'text ' , $ key );
827
831
$ document ->setProperty ('navigation_name ' , 'text ' , $ key );
828
832
@@ -930,6 +934,7 @@ public function generateLink(Document\Page $source, $key = 'test-link', array $p
930
934
{
931
935
$ link = new Document \Link ();
932
936
$ link ->setKey ($ key );
937
+ $ link ->setPublished (true );
933
938
$ link ->setParentId (1 );
934
939
$ link ->setLinktype ('internal ' );
935
940
$ link ->setInternalType ('document ' );
@@ -966,6 +971,7 @@ public function generateHardlink(Document\Page $source, $key = 'test-hardlink',
966
971
{
967
972
$ hardlink = new Document \Hardlink ();
968
973
$ hardlink ->setKey ($ key );
974
+ $ hardlink ->setPublished (true );
969
975
$ hardlink ->setParentId (1 );
970
976
$ hardlink ->setSourceId ($ source ->getId ());
971
977
$ hardlink ->setPropertiesFromSource (true );
@@ -1001,6 +1007,7 @@ public function generateSiteDocument(string $domain, array $params = [], $locale
1001
1007
$ document = TestHelper::createEmptyDocumentPage ($ domain , false );
1002
1008
$ document ->setProperty ('navigation_title ' , 'text ' , $ domain );
1003
1009
$ document ->setProperty ('navigation_name ' , 'text ' , $ domain );
1010
+ $ document ->setPublished (true );
1004
1011
1005
1012
$ document ->setKey (str_replace ('. ' , '- ' , $ domain ));
1006
1013
@@ -1074,6 +1081,7 @@ public function generateObject(string $objectType, $key = 'test-object', array $
1074
1081
$ object = TestHelper::createEmptyObject ($ key , true , false , $ type );
1075
1082
1076
1083
$ object ->setKey ($ key );
1084
+ $ object ->setPublished (true );
1077
1085
1078
1086
if (isset ($ params ['properties ' ])) {
1079
1087
$ object ->setProperties ($ params ['properties ' ]);
0 commit comments