‪TYPO3CMS  11.5
DeleteTranslatedSubpagesTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
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 
19 
23 
28 {
30  'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial',
31  ];
32 
33  protected function ‪setUp(): void
34  {
35  parent::setUp();
36  $this->importCSVDataSet(__DIR__ . '/DataSet/TranslatedSubpages.csv');
37  $this->backendUser->workspace = 0;
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:28
‪TYPO3\CMS\Core\DataHandling\DataHandler
Definition: DataHandler.php:86
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler
Definition: DefaultValuesTest.php:18
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
Definition: AbstractDataHandlerActionTestCase.php:41
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\DeleteTranslatedSubpagesTest\deletePageCausesNoErrorsWithTranslatedSubpage
‪deletePageCausesNoErrorsWithTranslatedSubpage()
Definition: DeleteTranslatedSubpagesTest.php:43
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\DeleteTranslatedSubpagesTest\setUp
‪setUp()
Definition: DeleteTranslatedSubpagesTest.php:33
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\DeleteTranslatedSubpagesTest\$testExtensionsToLoad
‪$testExtensionsToLoad
Definition: DeleteTranslatedSubpagesTest.php:29
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:50