Skip to content

Commit 281f204

Browse files
committed
[REVERT] Restore test files to main branch state
The functional test failure on TYPO3 v13 is a pre-existing issue not related to the SelectImageController changes in this PR. This PR only modifies SelectImageController.php to add proper input validation for getMaxDimensions() method.
1 parent d5f9240 commit 281f204

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
"sys_file",,,,,
2-
,"uid","pid","storage","identifier","name"
3-
,1,0,1,"/1.jpg","1.jpg"
4-
51
"tt_content",,,,,,
62
,"uid","pid","sys_language_uid","deleted","hidden","bodytext"
73
,1,1,0,0,0,<img data-htmlarea-file-table="sys_file" data-htmlarea-file-uid="1" data-title-override="true" src="/fileadmin/1.jpg" />

Tests/Functional/DataHandling/RteImageSoftReferenceParserTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
<?php
22

3+
/**
4+
* This file is part of the package netresearch/rte-ckeditor-image.
5+
*
6+
* For the full copyright and license information, please read the
7+
* LICENSE file that was distributed with this source code.
8+
*/
9+
310
declare(strict_types=1);
411

512
namespace Netresearch\RteCKEditorImage\Tests\Functional\DataHandling;
613

14+
use PHPUnit\Framework\Attributes\Test;
715
use TYPO3\CMS\Core\Database\ReferenceIndex;
816
use TYPO3\CMS\Core\Information\Typo3Version;
917
use TYPO3\CMS\Core\Utility\GeneralUtility;
@@ -19,9 +27,7 @@ class RteImageSoftReferenceParserTest extends FunctionalTestCase
1927
'typo3/cms-rte-ckeditor',
2028
];
2129

22-
/**
23-
* @test
24-
*/
30+
#[Test]
2531
public function updateReferenceIndexAddsIndexEntryForImage(): void
2632
{
2733
$this->importCSVDataSet(__DIR__ . '/Fixtures/ReferenceIndex/UpdateReferenceIndexImport.csv');

0 commit comments

Comments
 (0)