Skip to content
Snippets Groups Projects
Commit c9017160 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Avoid invalid methods in ImportExportUtilityTest

Method "dummy" can not be mocked since it does
not exist. Change to "don't mock anything" by
using 'null' as argument instead.

Resolves: #100473
Related: #100249
Releases: main
Change-Id: I1b53db814e6a422c129a4ad019885342e6984c8a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78481


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
parent 7f44d966
Branches
Tags
No related merge requests found
......@@ -21,7 +21,7 @@ use TYPO3\CMS\Core\EventDispatcher\NoopEventDispatcher;
use TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase;
use TYPO3\CMS\Impexp\Utility\ImportExportUtility;
class ImportExportUtilityTest extends AbstractImportExportTestCase
final class ImportExportUtilityTest extends AbstractImportExportTestCase
{
public static function importFailsDataProvider(): array
{
......@@ -49,7 +49,7 @@ class ImportExportUtilityTest extends AbstractImportExportTestCase
$importUtilityMock = $this->getAccessibleMock(
ImportExportUtility::class,
['dummy'],
null,
['eventDispatcher' => new NoopEventDispatcher()]
);
$importUtilityMock->importT3DFile($filePath, 0);
......@@ -64,7 +64,7 @@ class ImportExportUtilityTest extends AbstractImportExportTestCase
$importUtilityMock = $this->getAccessibleMock(
ImportExportUtility::class,
['dummy'],
null,
['eventDispatcher' => new NoopEventDispatcher()]
);
$result = $importUtilityMock->importT3DFile($filePath, 0);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment