34 protected $backendUserFixture =
'typo3/sysext/recycler/Tests/Functional/Fixtures/Database/be_users.xml';
40 protected function setUp()
43 $this->importDataSet(__DIR__ .
'/../Fixtures/Database/be_groups.xml');
57 $deletedRecords = GeneralUtility::makeInstance(\
TYPO3\CMS\Recycler\Domain\Model\DeletedRecords::class);
58 $deletedRecords->loadData($pageUid,
'pages', $depth);
59 return $deletedRecords->getDeletedRows();
71 $deletedRecords = GeneralUtility::makeInstance(\
TYPO3\CMS\Recycler\Domain\Model\DeletedRecords::class);
72 $deletedRecords->loadData($contentUid,
'tt_content', 0);
73 return $deletedRecords->getDeletedRows();
85 if (!is_file($path)) {
87 'Fixture file ' . $path .
' not found',
93 $fileContent = file_get_contents($path);
95 $previousValueOfEntityLoader = libxml_disable_entity_loader(
true);
96 $xml = simplexml_load_string($fileContent);
97 libxml_disable_entity_loader($previousValueOfEntityLoader);
100 foreach ($xml->children() as $table) {
104 foreach ($table->children() as $column) {
105 $columnName = $column->getName();
108 if (isset($column[
'ref'])) {
109 $columnValue = explode(
'#', $column[
'ref']);
110 } elseif (isset($column[
'is-NULL']) && ($column[
'is-NULL'] ===
'yes')) {
113 $columnValue = (string)$table->$columnName;
116 $record[$columnName] = $columnValue;
119 $tableName = $table->getName();
120 $data[$tableName][] = $record;