‪TYPO3CMS  10.4
ExportControllerTest.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 
20 use PHPUnit\Framework\MockObject\MockObject;
24 use TYPO3\TestingFramework\Core\AccessibleObjectInterface;
25 
30 {
34  protected ‪$exportControllerMock;
35 
36  protected function ‪setUp(): void
37  {
38  parent::setUp();
39 
40  $this->exportControllerMock = $this->getAccessibleMock(ExportController::class, ['dummy'], [], '', false);
41  $this->exportControllerMock->_set('lang', $this->createMock(LanguageService::class));
42  }
43 
48  {
49  $tables = $this->exportControllerMock->_call('getTableSelectOptions');
50  self::assertArrayHasKey('tx_impexp_presets', $tables);
51  }
52 }
‪TYPO3\CMS\Impexp\Tests\Functional\Export\ExportControllerTest
Definition: ExportControllerTest.php:30
‪TYPO3\CMS\Impexp\Tests\Functional\Export\ExportControllerTest\$exportControllerMock
‪ExportController MockObject AccessibleObjectInterface $exportControllerMock
Definition: ExportControllerTest.php:33
‪TYPO3\CMS\Impexp\Controller\ExportController
Definition: ExportController.php:53
‪TYPO3\CMS\Impexp\Tests\Functional\Export\ExportControllerTest\tableSelectOptionsContainPresetsTable
‪tableSelectOptionsContainPresetsTable()
Definition: ExportControllerTest.php:46
‪TYPO3\CMS\Impexp\Tests\Functional\Export
Definition: ExportControllerTest.php:18
‪TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase
Definition: AbstractImportExportTestCase.php:31
‪TYPO3\CMS\Impexp\Tests\Functional\Export\ExportControllerTest\setUp
‪setUp()
Definition: ExportControllerTest.php:35
‪TYPO3\CMS\Core\Localization\LanguageService
Definition: LanguageService.php:42