‪TYPO3CMS  10.4
DeleteTranslatedSubpagesTest.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
21 
26 {
30  protected ‪$scenarioDataSetDirectory = 'typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/DataSet/';
31 
32  protected function ‪setUp(): void
33  {
34  parent::setUp();
35  $this->‪importScenarioDataSet('TranslatedSubpages');
36  $this->backendUser->workspace = 0;
37  $this->backendUser->uc['recursiveDelete'] = true;
38  }
39 
44  {
45  $cmd = null;
46  $uid = 1;
47  $cmd['pages'][$uid]['delete'] = 1;
48 
49  $dataHandler = GeneralUtility::makeInstance(DataHandler::class);
50  $dataHandler->start([], $cmd);
51  $dataHandler->process_cmdmap();
52 
53  self::assertEquals($dataHandler->errorLog, []);
54  }
55 }
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\DeleteTranslatedSubpagesTest
Definition: DeleteTranslatedSubpagesTest.php:26
‪TYPO3\CMS\Core\DataHandling\DataHandler
Definition: DataHandler.php:84
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler
Definition: DefaultValuesTest.php:18
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\DeleteTranslatedSubpagesTest\$scenarioDataSetDirectory
‪string $scenarioDataSetDirectory
Definition: DeleteTranslatedSubpagesTest.php:29
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
Definition: AbstractDataHandlerActionTestCase.php:37
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\DeleteTranslatedSubpagesTest\deletePageCausesNoErrorsWithTranslatedSubpage
‪deletePageCausesNoErrorsWithTranslatedSubpage()
Definition: DeleteTranslatedSubpagesTest.php:42
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\DeleteTranslatedSubpagesTest\setUp
‪setUp()
Definition: DeleteTranslatedSubpagesTest.php:31
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\importScenarioDataSet
‪importScenarioDataSet($dataSetName)
Definition: AbstractDataHandlerActionTestCase.php:201