‪TYPO3CMS  9.5
DeleteTranslatedSubpagesTest.php
Go to the documentation of this file.
1 <?php
2 
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
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  $uid = 1;
46  $cmd['pages'][$uid]['delete'] = 1;
47 
48  $dataHandler = GeneralUtility::makeInstance(DataHandler::class);
49  $dataHandler->start([], $cmd);
50  $dataHandler->process_cmdmap();
51 
52  self::assertEquals($dataHandler->errorLog, []);
53  }
54 }
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\DeleteTranslatedSubpagesTest
Definition: DeleteTranslatedSubpagesTest.php:26
‪TYPO3\CMS\Core\DataHandling\DataHandler
Definition: DataHandler.php:81
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler
Definition: DefaultValuesTest.php:17
‪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:33
‪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:45
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\importScenarioDataSet
‪importScenarioDataSet($dataSetName)
Definition: AbstractDataHandlerActionTestCase.php:117